pynwb.legacy.map module

pynwb.legacy.map.decode(val)[source]
class pynwb.legacy.map.ObjectMapperLegacy(spec)[source]

Bases: hdmf.build.objectmapper.ObjectMapper

Create a map from AbstractContainer attributes to specifications

Parameters:spec (DatasetSpec or GroupSpec) – The specification for mapping objects to builders
source_gettr(builder, manager)[source]
constructor_args = {'name': <function ObjectMapper.get_container_name>, 'source': <function ObjectMapperLegacy.source_gettr>}
obj_attrs = {}
class pynwb.legacy.map.TypeMapLegacy(namespaces=None, mapper_cls=None)[source]

Bases: hdmf.build.manager.TypeMap

Parameters:
  • namespaces (NamespaceCatalog) – the NamespaceCatalog to use
  • mapper_cls (type) – the ObjectMapper class to use
get_builder_dt(builder)[source]

For a given builder, return the neurodata_type. In this legacy TypeMap, the builder may have out-of-spec neurodata_type; this function coerces this to a 2.0 compatible version.

get_builder_ns(builder)[source]

Get the namespace of a builder

Parameters:builder (DatasetBuilder or GroupBuilder or LinkBuilder) – the builder to get the sub-specification for