pynwb.io.core module¶
- class pynwb.io.core.NWBBaseTypeMapper(spec)[source]¶
Bases:
ObjectMapper
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- constructor_args = {'name': <function ObjectMapper.get_container_name>}¶
- obj_attrs = {}¶
- class pynwb.io.core.NWBContainerMapper(spec)[source]¶
Bases:
NWBBaseTypeMapper
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- constructor_args = {'name': <function ObjectMapper.get_container_name>}¶
- obj_attrs = {}¶
- class pynwb.io.core.NWBDataMap(spec)[source]¶
Bases:
NWBBaseTypeMapper
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- constructor_args = {'name': <function ObjectMapper.get_container_name>}¶
- obj_attrs = {}¶
- class pynwb.io.core.ScratchDataMap(spec)[source]¶
Bases:
NWBContainerMapper
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- constructor_args = {'name': <function ObjectMapper.get_container_name>}¶
- obj_attrs = {}¶
- class pynwb.io.core.NWBTableRegionMap(spec)[source]¶
Bases:
NWBDataMap
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- constructor_args = {'name': <function ObjectMapper.get_container_name>, 'region': <function NWBTableRegionMap.carg_region>, 'table': <function NWBTableRegionMap.carg_table>}¶
- obj_attrs = {}¶
- class pynwb.io.core.VectorDataMap(spec)[source]¶
Bases:
ObjectMapper
Create a map from AbstractContainer attributes to specifications
- Parameters:
spec (
DatasetSpec
orGroupSpec
) – The specification for mapping objects to builders
- get_attr_value(spec, container, manager)[source]¶
Get the value of the attribute corresponding to this spec from the given container
- Parameters:
spec (
AttributeSpec
) – the spec to get the attribute value forcontainer (
VectorData
) – the container to get the attribute value frommanager (
BuildManager
) – the BuildManager used for managing this build
- constructor_args = {'name': <function ObjectMapper.get_container_name>}¶
- obj_attrs = {}¶