libtcspc.ConvertSequencesToStartStop

final class libtcspc.ConvertSequencesToStartStop(tick_event_type, start_event_type, stop_event_type, count)[source]

Bases: Node

Processor that converts tick sequences to gapless start-stop event pairs.

Every count + 1 tick_event_type events are replaced by a series of start_event_type and stop_event_type events bracketing each tick interval. Other events pass through.

Parameters:
  • tick_event_type (EventType) – The tick event type (consumed). Must have an abstime field.

  • start_event_type (EventType) – The emitted start event type. Must be brace-initializable and have an abstime field.

  • stop_event_type (EventType) – The emitted stop event type. Must be brace-initializable and have an abstime field.

  • count (int or Param[int]) – Number of intervals per sequence.

Notes

Events handled:

  • tick_event_type: every count + 1 ticks are replaced by a series of start_event_type and stop_event_type events bracketing each tick interval.

  • All other event types: pass through unchanged.

  • End of input: pass through; an incomplete (partial) sequence is discarded.

See also

tcspc::convert_sequences_to_start_stop()

The underlying C++ factory function.