Skip to content

← elementwise_math package

ReplaceValues

Replace values in the data, using a mapping of old_value -> new_value.

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

mapping

A dictionary of replacement mappings, where each key is the value to replace and each value is its replacement. For example, {np.nan: 0, -1: 10} will replace all nans and -1 in the data by 0 and 10, respectively. Note that, if the result of a replacement matches the condition of another replacement, the latter will also be applied.

verbose name
A Dictionary Of Mapping
default value
{}
port type
DictPort
value type
dict (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)