nwb-linkml/nwb_linkml/maps/preload.py

23 lines
551 B
Python
Raw Normal View History

2023-08-19 05:09:28 +00:00
"""
Maps to change the loaded .yaml from nwb schema before it's given to the nwb_schema_language models
2023-08-19 05:09:28 +00:00
"""
from nwb_linkml.map import KeyMap, SCOPE_TYPES, PHASES
MAP_HDMF_DATATYPE_DEF = KeyMap(
source="\'data_type_def\'",
target="\'neurodata_type_def\'",
scope='hdmf-common',
scope_type=SCOPE_TYPES.namespace,
phase=PHASES.postload
)
MAP_HDMF_DATATYPE_INC = KeyMap(
source="\'data_type_inc\'",
target="\'neurodata_type_inc\'",
scope='hdmf-common',
scope_type=SCOPE_TYPES.namespace,
phase=PHASES.postload
)