libtcspc.RealOneShotTimingEvent

class libtcspc.RealOneShotTimingEvent(numeric_traits=None)[source]

Bases: EventType

Event describing a single (one-shot) delayed timing.

Emitted by ExtrapolatePeriodicSequences. Can be used as the trigger pattern for Generate with a dynamic one-shot timing generator.

Parameters:

numeric_traits (NumericTraits or None) – Set of integer types parameterising the C++ event. None (the default) uses NumericTraits defaults.

Notes

The corresponding C++ event has the fields abstime and delay.

A value is constructed by giving all fields, e.g. RealOneShotTimingEvent(nt).value(abstime=42, delay=1.0); read them back as attributes (inst.abstime).

Constructing and inspecting individual event values from Python is intended for debugging and learning only and is extremely slow; production graphs process events in compiled C++ and exchange bulk data via buckets.

See also

tcspc::real_one_shot_timing_event

The underlying C++ event type.