Skip to content

← elementwise_math package

ConditionalReplaceValues

Replace values that meet a given criteria.

Compare each value in the data against a given value using a given operator, and replace those which meet the criteria with a new value. For example, if new_value is 0, the comparator_value is 3 and the comparator_operator is < then any values below 3 will be replaced with 0. Version 1.0.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

comparator_value

Value against which each value in the data is compared.

verbose name
Comparator Value
default value
0
port type
FloatPort
value type
float (can be None)

comparator_operator

Operator used in the comparison. Values for which the comparison is true will be replaced with the new value.

verbose name
Comparator Operator
default value
=
port type
EnumPort
value type
str (can be None)

new_value

Replacement value for all values which meet the criteria

verbose name
New Value
default value
0
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)