libtcspc.RebaseAbstime

final class libtcspc.RebaseAbstime(numeric_traits=None)[source]

Bases: Node

Pass-through processor that shifts abstime so the first event is at zero.

Subtracts the abstime of the first event seen from every event’s abstime, so that downstream processing sees an abstime starting at zero. Wrap-around is handled correctly even if abstime_type is a signed integer type.

Parameters:

numeric_traits (NumericTraits or None) – Numeric traits specifying abstime_type. Defaults to NumericTraits().

Notes

Events handled:

  • All event types with an abstime field: pass through with abstime made relative to the first event.

  • End of input: pass through.

See also

tcspc::rebase_abstime()

The underlying C++ factory function.

Delay

Offset event abstimes by a constant delta.