pynwb.legacy package



Module contents


Get a TypeMap to use for I/O for Allen Institute Brain Observatory files (NWB v1.0.6)

pynwb.legacy.register_map(container_cls, mapper_cls=None)[source]
Register an ObjectMapper to use for a Container class type

If mapper_cls is not specified, returns a decorator for registering an ObjectMapper class as the mapper for container_cls. If mapper_cls specified, register the class as the mapper for container_cls

  • container_cls (type) – the Container class for which the given ObjectMapper class gets used for

  • mapper_cls (type) – the ObjectMapper class to use to map