We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e7324b + 244642b commit df89faaCopy full SHA for df89faa
1 file changed
src/PyMca5/PyMcaGui/io/hdf5/NexusInfo.py
@@ -128,10 +128,15 @@ def get_motor_positions(hdf5File, node):
128
if not nxentry_name:
129
return dict()
130
131
- nxentry = hdf5File[nxentry_name]
+ if hasattr(node, "file"):
132
+ source_file = node.file
133
+ else:
134
+ source_file = hdf5File
135
+
136
+ nxentry = source_file[nxentry_name]
137
if not isinstance(nxentry, h5py.Group):
138
139
- positions = getStartingPositionerValues(hdf5File, nxentry_name)
140
+ positions = getStartingPositionerValues(source_file, nxentry_name)
141
column_names = "Name", "Value", "Units"
142
return dict(zip(column_names, zip(*positions)))
0 commit comments