libtcspc.RealOneShotTimingEvent¶
- class libtcspc.RealOneShotTimingEvent(numeric_traits=None)[source]¶
Bases:
EventTypeEvent describing a single (one-shot) delayed timing.
Emitted by
ExtrapolatePeriodicSequences. Can be used as the trigger pattern forGeneratewith a dynamic one-shot timing generator.- Parameters:
numeric_traits (NumericTraits or None) – Set of integer types parameterising the C++ event.
None(the default) usesNumericTraitsdefaults.
Notes
The corresponding C++ event has the fields
abstimeanddelay.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.