Skip to content

← utilities package

RepeatAlongAxis

Repeat the data along the given axis.

This node basically repeats n copies of the data along the desired axis. One of the most common use cases is to extend an array to match the size of another array to then perform an elementwise operation between the two, such as addition. Version 1.1.2

Ports/Properties

data

Data to process.

verbose name
Data
default value
None
port type
DataPort
value type
AnyNumeric (can be None)
data direction
INOUT

axis

Axis along which to repeat. Select the space axis for channels, instance axis for trials or segments, time for the number of time points, feature for the number of features in the stream, etc. Note that, when you specify the axis positionally (by using an integer), out-of-bounds indices (before or after the valid dimensions) will be treated as a missing axis that will by default be inserted right before or after the existing axes.

verbose name
Axis
default value
instance
port type
ComboPort
value type
str (can be None)

create_axis

Under what conditions to create the desired axis in the data. If this is set to no, then the operation is skipped for any streams that do not have the axis in question. If this is set to if-missing, then the axis will be created for any streams that do not have it (but excluding marker streams). If this is set to always, then the axis in question will always be created (again, not in marker streams), even if it already exists.

verbose name
Create Axis
default value
if-missing
port type
EnumPort
value type
str (can be None)

num_repeats

Number of repetitions. The data will be repeated this many times along the given axis. The repeat operation is a multiplication of the data along the axis, so if the number of repeats is 1, the data will be passed through unchanged.

verbose name
Num Repeats
default value
1
port type
IntPort
value type
int (can be None)

verbose

Print warnings for edge cases.

verbose name
Verbose
default value
True
port type
BoolPort
value type
bool (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)