CreateBlock¶
A block is a multi-dimensional array with named/typed axes.
These correspond to the data and axes fields of the block (e.g., when using Set/Get Nested). In NeuroPype, each axis is of one of several types, such as space, time, frequency, instance, etc, and depending on the type, the axis may have specific fields, such as the array of time points or frequencies, or channel names in a space axis that characterize the dimensions of the array. The only constraint is that the number of axes matches the number of dimensions of the array, and that the n'th axis has the same length (number of elements) as the n'th dimension of the array. The node can optionally emit None if the resulting block is empty. Version 1.0.0
Ports/Properties¶
block¶
Output block.
array¶
Input array.
axis1¶
Axis 1.
axis2¶
Axis 2.
axis3¶
Axis 3.
axis4¶
Axis 4.
axisN¶
Additional axes.. ..
axes¶
Axis list.
axis_compatibility¶
How to handle shape mismatches between the array and the axes. If set to strict, then the dimensions of the array must match the lengths of the axes exactly. If set to 'allow extra singletons', then both the array may have extra singleton (length-1) dimensions or the axes may have extra length-1 axes. If set to 'allow shape mismatch', then the array and axes may have different shapes, as long as the number of elements in the array matches the product of the lengths of the axes. Note that this latter case is potentially dangerous in that the data may get shuffled in unexpected ways depending on the memory layout of the data (C or FORTRAN), but if the user knows what they're doing, it can be useful for reshaping data.
none_if_empty¶
Return None if the resulting block is empty.
verbose¶
Enable verbose diagnostics output.
axis0¶
Axis 0.
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.