- class heparchy.read.MapReader(Generic[heparchy.read.hdf.MapValue], collections.abc.Mapping[str, heparchy.read.hdf.MapValue])[source]
Read-only dictionary-like interface to user-named heparchy datasets.
- Parameters¶
- reader : HdfProcessReader | HdfEventReader
The reader instance to which the MapReader will be attached.
- iter_func : callable
The strategy used to iterate through the keys for the MapReader interface.
- Raises¶
ReadOnlyError – Dictionary-like behaviour which requires write-access for datasets, as access to the data is strictly read-only.
Notes
This is a concrete subclass of collections.abc.MutableMapping, and thus includes all functionality expected of a dictionary, including iteration over keys and values, subscriptable access to datasets, etc.
Public members¶
- MapReader(reader: HdfEventReader | HdfProcessReader, ...)[source]
Initialize self. See help(type(self)) for accurate signature.
- __getitem__(name: str) MapValue[source]
- __setitem__(name: str, data: MapValue)[source]
- classmethod __init_subclass__(*args, **kwargs)[source]
This method is called when a class is subclassed.
- classmethod __subclasshook__(C)[source]
Abstract classes can override this to customize issubclass().
Last update:
Nov 16, 2022