Skip to content

Commit

Permalink
avoid double-inheritance of NexusMeasurement
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbrock committed Dec 12, 2024
1 parent e5c9859 commit a780dbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pynxtools/nomad/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ def __create_class_section(xml_node: ET.Element) -> Section:
nx_category = xml_attrs["category"]

if nx_category == "application" or (nx_category == "base" and nx_name == "NXroot"):
nomad_base_sec_cls = [NexusMeasurement]
nomad_base_sec_cls = (
[NexusMeasurement] if xml_attrs["extends"] == "NXobject" else []
)
else:
nomad_base_sec_cls = __BASESECTIONS_MAP.get(nx_name, [BaseSection])

Expand Down

0 comments on commit a780dbb

Please sign in to comment.