libtcspc.BinIncrementClusterEvent¶
- class libtcspc.BinIncrementClusterEvent(numeric_traits=None)[source]¶
Bases:
EventTypeEvent carrying a cluster of histogram bin increments.
Emitted by
ClusterBinIncrementsandUnbatchBinIncrementClusters, and consumed byScanHistogramsandBatchBinIncrementClusters. It carries a bucket of bin indices.- 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
bin_indices, atcspc::bucketofbin_index_type.Can be delivered directly to a Python sink as an
EventInstancewhosebin_indicesattribute reads as a read-only NumPy array, and constructed viavalue()(the bucket field accepts a 1-D array-like).Even though this event carries a bucket, individual clusters are small and numerous, so constructing or inspecting them from Python is intended for debugging and learning only and is extremely slow. In production these clusters stay within the compiled graph.
See also
- tcspc::bin_increment_cluster_event
The underlying C++ event type.