libtcspc.TimeReachedEvent¶
- class libtcspc.TimeReachedEvent(numeric_traits=None)[source]¶
Bases:
EventTypeKeep-alive event indicating that the data source has reached a given time.
Serves two purposes: (a) propagating time progression when there are no detections to send (including marking the end of a measurement), and (b) preventing long gaps in
abstimethat would otherwise stall time-sensitive processors.- 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 field
abstime. The emission frequency of these events can be tuned on the C++ side withtcspc::regulate_time_reached().A value is constructed by giving all fields, e.g.
TimeReachedEvent(nt).value(abstime=42); 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::time_reached_event
The underlying C++ event type.