type

pipeline.Lifecycle

class Lifecycle(typing.Protocol):

Status machine over a merged :class:`~unitrack.data.Tracklets` snapshot.

Implementations must preserve row order: the returned snapshot must be a subset of input rows in their original order (a boolean keep-mask applied to ``cs``). :meth:`~unitrack.tracker.Tracker.step` exploits this to remap matched-pair indices into the surviving row space; reordering or merging rows silently breaks visibility remapping.

Members

method

  • __call__Apply per-row status transitions and return the surviving rows.

Source: unitrack/pipeline/base.py:146