Skip to content

← utilities package

DiscardLongChunks

Drop chunks whose length exceeds a threshold.

This can be useful to drop excessively long chunks that may cause a hitch if they enter a slow processing function. Such chunks can occur, for instance, after a node spent a long time calibrating itself. Version 1.0.0

Ports/Properties

data

Data to process

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

threshold

Threshold in seconds. Chunks that are longer than this will be dropped.

  • verbose name: Threshold
  • default value: 10
  • port type: FloatPort
  • value type: float (can be None)

entire_packet

Discard whole packet instead of individual chunks.

  • verbose name: Entire Packet
  • default value: True
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)