pylhe.LHEHDF5Format

class pylhe.LHEHDF5Format(compression: str | None = None, compression_opts: int | None = None, shuffle: bool = False, event_chunk_rows: int = 1024, particle_chunk_rows: int = 8192)[source]

Bases: object

Selects the HDF5 format.

__init__(compression: str | None = None, compression_opts: int | None = None, shuffle: bool = False, event_chunk_rows: int = 1024, particle_chunk_rows: int = 8192) None

Methods

__init__([compression, compression_opts, ...])

Attributes

compression

Dataset compression filter passed to h5py, e.g. "gzip".

compression_opts

Optional compression level/options passed to h5py.

event_chunk_rows

Chunk size in rows for the events dataset.

particle_chunk_rows

Chunk size in rows for the particles dataset.

shuffle

Whether to enable the HDF5 shuffle filter.

compression: str | None = None

Dataset compression filter passed to h5py, e.g. "gzip".

compression_opts: int | None = None

Optional compression level/options passed to h5py.

event_chunk_rows: int = 1024

Chunk size in rows for the events dataset.

particle_chunk_rows: int = 8192

Chunk size in rows for the particles dataset.

shuffle: bool = False

Whether to enable the HDF5 shuffle filter.