libtcspc.CheckAlternating¶
- final class libtcspc.CheckAlternating(event0_type, event1_type)[source]¶
Bases:
NodePass-through processor that checks two event types alternate.
Verifies that events of types
event0_typeandevent1_typeappear in strict alternation starting withevent0_type. On violation, aWarningEventis emitted just before the offending event. All events (including warnings) are then passed through.- Parameters:
Notes
Events handled:
event0_type,event1_type: if not strictly alternating starting withevent0_type, emitWarningEventjust before passing through.All other event types: pass through unchanged.
End of input: pass through.
The output event set always includes
WarningEvent, even if the upstream event set does not.See also
- tcspc::check_alternating()
The underlying C++ factory function.