Commit 1da9cfca authored by Damien Naudet's avatar Damien Naudet
Browse files

Using scan_positions instead of measurement.

parent 34053a76
...@@ -160,7 +160,6 @@ class XsocsH5(XsocsH5Base): ...@@ -160,7 +160,6 @@ class XsocsH5(XsocsH5Base):
return cumul return cumul
def scan_positions(self, entry): def scan_positions(self, entry):
# TODO : check the motors : could by x/y x/z y/z
path = self.measurement_tpl.format(entry) path = self.measurement_tpl.format(entry)
params = self.scan_params(entry) params = self.scan_params(entry)
m0 = '/adc{0}'.format(params['motor_0'][-1].upper()) m0 = '/adc{0}'.format(params['motor_0'][-1].upper())
......
...@@ -718,8 +718,9 @@ def _img_2_qspace(data_h5f, ...@@ -718,8 +718,9 @@ def _img_2_qspace(data_h5f,
entry_files = [] entry_files = []
sample_x = master_h5.measurement(entries[0], 'adcX') # sample_x = master_h5.measurement(entries[0], 'adcX')
sample_y = master_h5.measurement(entries[0], 'adcY') # sample_y = master_h5.measurement(entries[0], 'adcY')
sample_x, sample_y = master_h5.scan_positions(entries[0])
for entry_idx, entry in enumerate(entries): for entry_idx, entry in enumerate(entries):
entry_file = master_h5.entry_filename(entry) entry_file = master_h5.entry_filename(entry)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment