Created
August 1, 2017 15:22
-
-
Save nicain/cab4598c89738ac129d449c9bcb92bcc to your computer and use it in GitHub Desktop.
Table Extension model Sandbox (debug)
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
from pynwb import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
from pynwb import get_class, load_namespaces | |
ns_path = "table.namespace.yaml" | |
ext_source = "table.extensions.yaml" | |
ns_builder = NWBNamespaceBuilder('A table namespace', "table") | |
ext = NWBGroupSpec('A table group', | |
neurodata_type_def='Table') | |
ns_builder.add_spec(ext_source, ext) | |
ns_builder.export(ns_path) | |
ns_path = "table.namespace.yaml" | |
load_namespaces(ns_path) | |
Table = get_class('Table', 'table') | |
Author
nicain
commented
Aug 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment