Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kmap
xsocs
Commits
2e335384
Commit
2e335384
authored
Nov 29, 2018
by
Thomas Vincent
Browse files
decode bytes
parent
0a0c2e23
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsocs/io/XsocsH5.py
View file @
2e335384
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment