DiscardInvalidData¶
Remove slices of the incoming packets that contain invalid data.
This node can use various criteria to determine whether some data in a chunk is invalid (e.g., contains any infinite values or NaN values). However, since the data is a multi-dimensional array, one cannot just cut out a single number -- instead, a whole slice needs to be removed, and you can select whether you want to remove the affected channel(s), time range, instances, and so on, by selecting the desired axis along which to prune. It is important to note that this node will not remove a different set of e.g., channels on each successive chunk that it is getting (this would break subsequent processing). Instead, this node determines what to remove when it receives a non-streaming chunk ( e.g., an imported recording or some calibration data), and then carries that removal mask over unchanged to any subsequent streaming chunk. Note that these are some relatively basic criteria to identify completely invalid data. This node does not do the kind of sophisticated statistical analysis that dedicated bad-channel removal or bad-time window removal nodes perform. 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
axis¶
Axis along which to remove data. For instance, if this is set to space, then channels with invalid data will be removed.
- verbose name: Prune Along Axis
- default value: space
- port type: ComboPort
- value type: str (can be None)
criteria¶
Pruning criteria. This is a list of multiple possible criteria, formatted as in all or some of: ['has-inf', 'has-nan', 'all-nan', 'all-zero'].
- verbose name: Criteria
- default value: ['has-inf', 'has-nan', 'all-nan', 'all-zero']
- port type: ListPort
- value type: list (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)