libtcspc.Unbatch

final class libtcspc.Unbatch(event_type)[source]

Bases: Node

Processor that emits the elements of bucketed batches one at a time.

The inverse of Batch: for each incoming BucketEvent, each contained element is emitted in order as an individual event of the bucket’s element type.

Parameters:

event_type (BucketEvent) – The bucket event type whose elements are to be unpacked. The emitted event type is the bucket’s element type.

Notes

Events handled:

  • Events matching event_type: each contained element is emitted in order as an individual event.

  • Events not matching event_type: rejected at graph build time.

  • End of input: pass through.

See also

tcspc::unbatch()

The underlying C++ factory function.