pynwb.legacy.map module¶
- class pynwb.legacy.map.ObjectMapperLegacy(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>, 'source': <function ObjectMapperLegacy.source_gettr>}¶
- obj_attrs = {}¶
- class pynwb.legacy.map.TypeMapLegacy(namespaces=None, mapper_cls=None)[source]¶
Bases:
TypeMap
- Parameters:
namespaces (
NamespaceCatalog
) – the NamespaceCatalog to usemapper_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
orGroupBuilder
orLinkBuilder
) – the builder to get the sub-specification for