OperateAxis¶
Perform an operation (subtract, add, multiply, divide) on the data values between pairs of elements in an axis (instance, feature, space), and expand the data tensor along that axis to add the result.
(Optionally, can output only the newly computed data and drop the original data.) Also creates a marker or name for each new data element (in instance.data[
Ports/Properties¶
data¶
Data to process.
operator¶
The operator representing the operation to be performed on data of the two elements.
operate_axis¶
Axis containing the data set to be operated on. Supports the instance, feature and space axes. If there is more than one axis of the same type, the first axis will be selected.
operate_field¶
When operating on the instance axis, the name of the .d ata field to be updated with the name of the result of the operation (i.e, 'target-control'), such as Marker, Group, Session, etc. If you specify the operands by name, this is the field that will be searched to find the instances to operate on. This field is ignored when operating on an axis other than the instance axis.
operands¶
The element pairs for which data is to be operated on, and their order in the operation. Using subtract as an example: [0, 1] will subtract data of the second element from the first element (element0 - element1). If the axis has more than two elements, you can select which ones should be subtracted. Optionally, you can specify the names of markers (instance axis), feature names (feature axis), or channels (space axis) instead of element index numbers. I.e., ['left', 'right'] will perform a left-right subtraction (with operator set to 'subtract'). Several pairs of can be computed on by specifying a list of lists: [[5, 8],['left', 'right']]. Tip: write [0, -1] to operate on first and last elements.
output_operated_only¶
Only the newly computed data will be output, not the original data.
verbose¶
Print to console the axis element names/markers after operation.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.