-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ authors = [ | |
{ name="Ryan Ly", email="[email protected]" }, | ||
{ name="Oliver Ruebel", email="[email protected]" }, | ||
{ name="Kay Robbins", email="[email protected]" }, | ||
{ name="Ian Callanan", email="[email protected]"} | ||
] | ||
description = "NWB extension for HED data" | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
datasets: | ||
- neurodata_type_def: HedTags | ||
- neurodata_type_def: HedAnnotations | ||
neurodata_type_inc: VectorData | ||
dtype: text | ||
doc: An extension of VectorData for Hierarchical Event Descriptor (HED) tags. | ||
doc: An extension of VectorData for Hierarchical Event Descriptor (HED) tags. If | ||
HED tags are used, the HED schema version must be specified in the NWB file using | ||
the HedMetadata type. | ||
groups: | ||
- neurodata_type_def: HedNWBFile | ||
neurodata_type_inc: NWBFile | ||
doc: An extension of NWBFile to store the Hierarchical Event Descriptor (HED) schema | ||
version. | ||
- neurodata_type_def: HedMetadata | ||
neurodata_type_inc: LabMetaData | ||
name: HedMetadata | ||
doc: An extension of LabMetaData to store the Hierarchical Event Descriptor (HED) | ||
schema version. TODO When merged with core, this will no longer inherit from LabMetaData | ||
but from NWBContainer and be placed optionally in /general. | ||
attributes: | ||
- name: hed_schema_version | ||
dtype: text | ||
doc: The version of the HED schema used to validate the HED tags, e.g., '8.2.0'. | ||
Required if HED tags are used in the NWB file. | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,12 @@ namespaces: | |
- Ryan Ly | ||
- Oliver Ruebel | ||
- Kay Robbins | ||
- Ian Callanan | ||
contact: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
doc: NWB extension for HED data | ||
name: ndx-hed | ||
schema: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,13 @@ def main(): | |
"Ryan Ly", | ||
"Oliver Ruebel", | ||
"Kay Robbins", | ||
"Ian Callanan", | ||
], | ||
contact=[ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
], | ||
) | ||
|
||
|
@@ -36,17 +38,22 @@ def main(): | |
# TODO: define your new data types | ||
# see https://pynwb.readthedocs.io/en/latest/extensions.html#extending-nwb | ||
# for more information | ||
hed_tags = NWBDatasetSpec( | ||
neurodata_type_def="HedTags", | ||
hed_annotations = NWBDatasetSpec( | ||
neurodata_type_def="HedAnnotations", | ||
neurodata_type_inc="VectorData", | ||
doc="An extension of VectorData for Hierarchical Event Descriptor (HED) tags.", | ||
doc=("An extension of VectorData for Hierarchical Event Descriptor (HED) tags. If HED tags are used, " | ||
"the HED schema version must be specified in the NWB file using the HedMetadata type."), | ||
dtype="text", | ||
) | ||
|
||
hed_nwbfile = NWBGroupSpec( | ||
neurodata_type_def="HedNWBFile", | ||
neurodata_type_inc="NWBFile", | ||
doc="An extension of NWBFile to store the Hierarchical Event Descriptor (HED) schema version.", | ||
hed_metadata = NWBGroupSpec( | ||
neurodata_type_def="HedMetadata", | ||
neurodata_type_inc="LabMetaData", | ||
name="HedMetadata", # fixed name | ||
doc=("An extension of LabMetaData to store the Hierarchical Event Descriptor (HED) schema version. " | ||
"TODO When merged with core, " | ||
"this will no longer inherit from LabMetaData but from NWBContainer and be placed " | ||
"optionally in /general."), | ||
attributes=[ | ||
NWBAttributeSpec( | ||
name="hed_schema_version", | ||
|
@@ -55,13 +62,13 @@ def main(): | |
"Required if HED tags are used in the NWB file." | ||
), | ||
dtype="text", | ||
required=False, | ||
required=True, | ||
), | ||
], | ||
) | ||
|
||
# TODO: add all of your new data types to this list | ||
new_data_types = [hed_tags, hed_nwbfile] | ||
new_data_types = [hed_annotations, hed_metadata] | ||
|
||
# export the spec to yaml files in the spec folder | ||
output_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "spec")) | ||
|