class heparchy.read.HdfReader(heparchy.read.base.ReaderBase)[source]

Create a new heparchy hdf5 file object with read access. Processes stored within are accessed via string subscripting.

Parameters
path : pathlib.Path

Location of the file to be read.

Examples

Opening a file using the context manager:

>>> import heparchy
>>> with heparchy.read.HdfReader("showers.hdf5") as hep_file:
>>>     ...

Public members

HdfReader(path: Path)[source]

Initialize self. See help(type(self)) for accurate signature.

__getitem__(key: str) HdfProcessReader[source]
read_process(name: str) HdfProcessReader[source]

Returns process reader iterator object.


Last update: Nov 16, 2022