Commit 34053a76 authored by Damien Naudet's avatar Damien Naudet
Browse files

scan_positions method takes into account the motor names

parent 6296f6c5
...@@ -162,8 +162,12 @@ class XsocsH5(XsocsH5Base): ...@@ -162,8 +162,12 @@ class XsocsH5(XsocsH5Base):
def scan_positions(self, entry): def scan_positions(self, entry):
# TODO : check the motors : could by x/y x/z y/z # TODO : check the motors : could by x/y x/z y/z
path = self.measurement_tpl.format(entry) path = self.measurement_tpl.format(entry)
x_pos = self._get_array_data(path + '/adcX') params = self.scan_params(entry)
y_pos = self._get_array_data(path + '/adcY') m0 = '/adc{0}'.format(params['motor_0'][-1].upper())
m1 = '/adc{0}'.format(params['motor_1'][-1].upper())
x_pos = self._get_array_data(path + m0)
y_pos = self._get_array_data(path + m1)
return (x_pos, y_pos) return (x_pos, y_pos)
def scan_params(self, entry): def scan_params(self, 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