pynwb.core module
- class pynwb.core.NWBMixin(name)[source]
Bases:
AbstractContainer
- Parameters:
name (
str
) – the name of this container
- get_ancestor(neurodata_type=None)[source]
Traverse parent hierarchy and return first instance of the specified data_type
- Parameters:
neurodata_type (
str
) – the data_type to search for
- property data_type
Return the spec data type associated with this container, i.e., the neurodata_type.
- class pynwb.core.NWBContainer(name)[source]
-
- Parameters:
name (
str
) – the name of this container
- namespace = 'core'
- neurodata_type = 'NWBContainer'
- class pynwb.core.NWBDataInterface(name)[source]
Bases:
NWBContainer
- Parameters:
name (
str
) – the name of this container
- namespace = 'core'
- neurodata_type = 'NWBDataInterface'
- class pynwb.core.NWBData(name, data)[source]
-
- Parameters:
- property data
- extend(arg)[source]
The extend_data method adds all the elements of the iterable arg to the end of the data of this Data container.
- Parameters:
arg – The iterable to add to the end of this VectorData
- namespace = 'core'
- neurodata_type = 'NWBData'
- class pynwb.core.ScratchData(name, data, notes='', description=None)[source]
Bases:
NWBData
- Parameters:
name (
str
) – the name of this containerdata (
str
orint
orfloat
orbytes
orbool
orndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
orDataIO
orData
) – the source of the datanotes (
str
) – notes about the data. This argument will be deprecated. Use description insteaddescription (
str
) – notes about the data
- property notes
- namespace = 'core'
- neurodata_type = 'ScratchData'
- class pynwb.core.NWBTable(columns, name, data=[])[source]
Bases:
Table
Defined in PyNWB for API backward compatibility. See HDMF Table for details.
- Parameters:
columns (
list
ortuple
) – a list of the columns in this tablename (
str
) – the name of this containerdata (
ndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
orDataIO
) – the source of the data
- class pynwb.core.MultiContainerInterface(name)[source]
Bases:
NWBDataInterface
,MultiContainerInterface
Defined in PyNWB for API backward compatibility. See HDMF MultiContainterInterface for details.
- Parameters:
name (
str
) – the name of this container