libtcspc.Delay¶
- final class libtcspc.Delay(delta, numeric_traits=None)[source]¶
Bases:
NodePass-through processor that offsets event abstimes by a constant delta.
Adds
deltato theabstimefield of every event that has one. Wrap-around is handled correctly even ifabstime_typeis a signed integer type. Only events with anabstimefield may flow through.- Parameters:
delta (int or Param[int]) – Offset added to
abstime. May be negative.numeric_traits (NumericTraits or None) – Numeric traits specifying the
abstime_type. Defaults toNumericTraits().
Notes
Events handled:
All event types with an
abstimefield: pass through withdeltaadded.End of input: pass through.
See also
- tcspc::delay()
The underlying C++ factory function.
RebaseAbstimeShift abstime so the first event is at zero.