Skip to content

← tensor_math package

AppendAxis

Append a new one-element axis to the incoming packet.

This axis can be given a label for identification, and a position within the packet (though that is rarely needed). Besides packets, this operation can also be used with an incoming array to add new dimensions to an array. Version 1.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

new_axis

New axis type to use. This is the type of axis that should replace the previous one. The axis type is ignored if the data is not of Packet type.

verbose name
New Axis
default value
space
port type
EnumPort
value type
str (can be None)

label

Axis label. Optionally the label of the axis to be added. This is useful to identify the axis in the event you have more than one axis of the same type in the same stream.

verbose name
Label
default value
None
port type
StringPort
value type
str (can be None)

init_data

Optional index value for the default field (array) of the newly created axis. For frequency axis this will be the frequency value (.frequencies), for space the channel name (.names), for a feature axis the feature name (.names), for a time axis the time in seconds (.times), for an instance axis the name of the Marker (.data["Marker"]). If unspecified a dummy value will be used.

verbose name
Value For New Axis
default value
None
port type
StringPort
value type
str (can be None)

position

Position of the new axis. The new axis will be inserted at this position. If the position is negative, the axis will be inserted from the end. For instance, -1 means the last axis, -2 means the second to last axis, etc. (Typically this does not need to be changed.)

verbose name
Position
default value
-1
port type
IntPort
value type
int (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)