We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fdbe94 + 25c000e commit 7362407Copy full SHA for 7362407
src/pynxtools/nomad/parser.py
@@ -225,7 +225,10 @@ def _populate_data(
225
attribute = attr_value
226
# TODO: get unit from attribute <xxx>_units
227
if isinstance(metainfo_def.type, MEnum):
228
- attribute = str(attr_value)
+ if isinstance(attr_value, np.ndarray):
229
+ attribute = str(attr_value.tolist())
230
+ else:
231
+ attribute = str(attr_value)
232
elif not isinstance(attr_value, str):
233
if isinstance(attr_value, np.ndarray):
234
attr_list = attr_value.tolist()
0 commit comments