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

decode bytes

parent 0a0c2e23
......@@ -243,9 +243,13 @@ class XsocsH5(XsocsH5Base):
with self._get_file() as h5_file:
path = self.scan_params_tpl.format(entry) + '/{0}'
return OrderedDict([(param, h5_file.get(path.format(param),
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
def positioner(self, 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