Skip to content

← diagnostics package

HasNanOrInf

Check if the given data structure contains NaN or infinite values.

This will recurse into various kinds of data structures, including lists, dictionaries, arrays, packets, and so forth. Version 0.5.0

Ports/Properties

data

Data to process

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

check_nan

If True, check for NaN values.

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

check_inf

If True, check for Infinity values.

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

pass_through_none

Pass None values through as None.

  • verbose name: Pass Through None
  • 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)