pynwb.io.core module

class pynwb.io.core.NWBBaseTypeMapper(spec)[source]

Bases: ObjectMapper

Create a map from AbstractContainer attributes to specifications

Parameters:

spec (DatasetSpec or GroupSpec) – The specification for mapping objects to builders

static get_nwb_file(container)[source]
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 or GroupSpec) – 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 or GroupSpec) – 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 or GroupSpec) – 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 or GroupSpec) – The specification for mapping objects to builders

carg_table(builder, manager)[source]
carg_region(builder, manager)[source]
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 or GroupSpec) – 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 for

  • container (VectorData) – the container to get the attribute value from

  • manager (BuildManager) – the BuildManager used for managing this build

constructor_args = {'name': <function ObjectMapper.get_container_name>}
obj_attrs = {}