deltakit.explorer.types.DetectionEvents#

class deltakit.explorer.types.DetectionEvents(data: Path | DataString | list[list[int]] | ndarray[tuple[Any, ...], dtype[_ScalarT]], data_format: DataFormat = DataFormat.B8, data_width: int = -1)#

Bases: BinaryDataType

Binary table, representing detectors.

Methods#

DetectionEvents.as_01_string

Represent content of the object as 01 string.

DetectionEvents.as_b8_bytes

Represent underlying data as b8 bit-packed bytes.

DetectionEvents.as_data_string

Converts the object to a compact datastring.

DetectionEvents.as_numpy

Represent the data as unsigned 1 byte/number (uint8) numpy table.

DetectionEvents.combine

Stack multiple binary tables into one using numpy representation.

DetectionEvents.split

Split a data file into multiple blocks based on the number of output files.

DetectionEvents.to_batches

Split a data file into batches of fixed size.