This file contains hidden or 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
import numpy as np | |
from pynwb import get_class, load_namespaces | |
from datetime import datetime | |
from pynwb import NWBFile | |
import pandas as pd | |
from form.backends.hdf5 import HDF5IO | |
from pynwb import get_build_manager | |
ns_path = "alleninstitute.namespace.yaml" | |
ext_source = "alleninstitute.extensions.yaml" |
This file contains hidden or 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
import numpy as np | |
from pynwb import get_class, load_namespaces | |
from datetime import datetime | |
from pynwb import NWBFile | |
import pandas as pd | |
from form.backends.hdf5 import HDF5IO | |
from pynwb import get_build_manager | |
ns_path = "alleninstitute.namespace.yaml" | |
ext_source = "alleninstitute.extensions.yaml" |
This file contains hidden or 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
import os | |
import h5py | |
import numpy as np | |
# Create compound data type | |
# a table with columns channel ID, xyz-coordinates, and impedence | |
coord_dt = np.dtype([('x', np.float), ('y', np.float), ('z', np.float)]) | |
ch_dt = np.dtype([("id", np.int), ("coord", coord_dt), ("imp", np.float)]) | |
# Make a fake channel table |
This file contains hidden or 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
#fix of https://gist.github.com/nicain/be598d5b7be5f2ffe1fd7e8d27c87ec3 | |
# | |
from pynwb.spec import NWBNamespaceBuilder, NWBGroupSpec, NWBAttributeSpec | |
import numpy as np | |
from pynwb import get_class, load_namespaces | |
mylab = 'alleninstitute' | |
ns_path = "%s.namespace.yaml" % mylab | |
ext_source = "%s.extensions.yaml" % mylab |
NewerOlder