Commit 2e335384 authored by Thomas Vincent's avatar Thomas Vincent

decode bytes

parent 0a0c2e23
......@@ -243,9 +243,13 @@ class XsocsH5(XsocsH5Base):
'delay']
with self._get_file() as h5_file:
path = self.scan_params_tpl.format(entry) + '/{0}'
return OrderedDict([(param, h5_file.get(path.format(param),
_np.array(None))[()])
for param in param_names])
result = OrderedDict()
for param in param_names:
value = h5_file.get(path.format(param), _np.array(None))[()]
if hasattr(value, 'decode'):
value = value.decode()
result[param] = value
return result
@_process_entry
def positioner(self, entry, positioner):
......
Markdown is supported
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