Skip to content

Commit

Permalink
initiate base section map
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 2, 2024
1 parent d7b7bf2 commit 017ea57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pynxtools/nomad/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
Entity,
Activity,
Instrument,
CompositeSystem,
)
from nomad.metainfo.data_type import (
Bytes,
Expand Down Expand Up @@ -89,6 +90,11 @@
__XML_PARENT_MAP: Dict[ET.Element, ET.Element]
__NX_DOC_BASE = "https://manual.nexusformat.org/classes"

BASESECTIONS_MAP = {
"NXinstrument": Instrument,
"NXsample": CompositeSystem,
}


def get_nx_type(nx_type: str) -> Optional[Datatype]:
"""
Expand Down

0 comments on commit 017ea57

Please sign in to comment.