deltakit.core.decoding_graphs.DetectorRecord.from_sequence#

classmethod DetectorRecord.from_sequence(sequence: Sequence[float | int]) DetectorRecord#

Create a DetectorRecord given a sequence if floats or ints. The first n-1 items in the sequence are used for the spatial coordinate and the nth item is used as the time coordinate.

Parameters:

sequence (Sequence[float | int]) – A sequence of floats or ints specifying the coordinates.

Return type:

DetectorRecord