Skip to content

Commit

Permalink
name testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 2, 2024
1 parent 609c688 commit 8ac181f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pynxtools/nomad/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ class nexus definition.
else:
base_section_cls = BASESECTIONS_MAP.get(name, BaseSection)

name = base_section_cls.getattr("name", None)

if not name:
base_section_cls.setattr("name", None)

section = base_section_cls(validate=VALIDATE, name=name, **kwargs)

__section_definitions[name] = section
Expand Down

0 comments on commit 8ac181f

Please sign in to comment.