Skip to content
GitLab
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
b9d7b371
Commit
b9d7b371
authored
Apr 27, 2017
by
Damien Naudet
Browse files
Small xsocsh5 fix.
parent
6822878d
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsocs/io/XsocsH5.py
View file @
b9d7b371
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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