Skip to content

← elementwise_math package

ReplaceNonfinite

Replace NaN, +Inf and -Inf values by substitution values, and optionally clip very large finite values to a min/max range.

Version 2.2.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

replace_nan

Replace NaN values by this value.

verbose name
Replace Nan With
default value
0.0
port type
FloatPort
value type
float (can be None)

replace_posinf

Replace Inf values by this value.

verbose name
Replace +inf With
default value
1e+30
port type
FloatPort
value type
float (can be None)

replace_neginf

Replace -Inf values by this value.

verbose name
Replace -Inf With
default value
-1e+30
port type
FloatPort
value type
float (can be None)

max

Clip large positive or negative (but finite) values to +/- this value. If this set to None or 0, this step will not be performed.

verbose name
Clip Min/max
default value
1e+30
port type
FloatPort
value type
float (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)