Commit b9d7b371 authored by Damien Naudet's avatar Damien Naudet
Browse files

Small xsocsh5 fix.

parent 6822878d
......@@ -192,10 +192,9 @@ class XsocsH5(XsocsH5Base):
'delay']
with self._get_file() as h5_file:
path = self.scan_params_tpl.format(entry) + '/{0}'
if isinstance(param_names, (list, set, tuple)):
return OrderedDict([(param, h5_file.get(path.format(param),
_np.array(None))[()])
for param in param_names])
return OrderedDict([(param, h5_file.get(path.format(param),
_np.array(None))[()])
for param in param_names])
def positioner(self, entry, positioner):
path = self.positioners_tpl.format(entry) + '/' + positioner
......
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