libtcspc.PairOne¶
- final class libtcspc.PairOne(start_channel, stop_channels, time_window, numeric_traits=None)[source]¶
Bases:
NodeProcessor that pairs each start with at most one stop per stop channel.
Like
PairAll, but each buffered start is paired with at most one detection per stop channel.- Parameters:
start_channel (int or Param[int]) – Channel of the start detections.
stop_channels (Sequence[int]) – Channels of the stop detections.
time_window (int or Param[int]) – Maximum abstime difference for a pair (must be non-negative).
numeric_traits (NumericTraits or None) – Numeric traits for the events. Defaults to
NumericTraits().
Notes
Events handled:
Detection events: paired as described above, emitting a
DetectionPairEventfor each resulting pair.All input events: pass through unchanged.
End of input: pass through; unpaired buffered start detections are discarded.
See also
- tcspc::pair_one()
The underlying C++ factory function.