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.
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.
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.
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.
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.)
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.