libtcspc.DatapointEvent

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

Bases: EventType

Event representing a scalar datapoint mapped from another event.

Emitted by MapToDatapoints and consumed by MapToBins.

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 field value (of datapoint_type).

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

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::datapoint_event

The underlying C++ event type.