We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 116f099 commit 279ba0eCopy full SHA for 279ba0e
pynxtools/dataconverter/helpers.py
@@ -545,10 +545,15 @@ def try_undocumented(data, nxdl_root: ET.Element):
545
nxdl_path = convert_data_converter_dict_to_nxdl_path(path)
546
547
if entry_name == "@units":
548
- if (
549
- path.rsplit("/", 1)[0] in data.get_documented()
550
- and path in data.undocumented
551
- ):
+ field_path = path.rsplit("/", 1)[0]
+ if field_path in data.get_documented() and path in data.undocumented:
+ field_requiredness = get_required_string(
+ nexus.get_node_at_nxdl_path(
552
+ nxdl_path=convert_data_converter_dict_to_nxdl_path(field_path),
553
+ elem=nxdl_root,
554
+ )
555
556
+ data[field_requiredness][path] = data.undocumented[path]
557
del data.undocumented[path]
558
continue
559
0 commit comments