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.

__repr__() str[source]

Return repr(self).

__getitem__(name: str) MapValue[source]
__setitem__(name: str, data: MapValue)[source]
MapReader[params][source]
classmethod __init_subclass__(*args, **kwargs)[source]

This method is called when a class is subclassed.

get(k[, d]) D[k] if k in D, else d.  d defaults to None.[source]
keys() a set-like object providing a view on D's keys[source]
items() a set-like object providing a view on D's items[source]
values() an object providing a view on D's values[source]
__eq__(other)[source]

Return self==value.

classmethod __subclasshook__(C)[source]

Abstract classes can override this to customize issubclass().


Last update: Nov 16, 2022