CreateArray¶
Create an array from the given input values.
The value type will generally be inferred from the input values, and will typically be the least flexible type that can represent all the input values (object in the case where the inputs are of otherwise irreconcilable types). One may also force a specific type by settin gthe precision argument to a specific value (e.g., float64). Note that, if all inputs are (possibly nested) lists of compatible size, the result will be a 2 or higher dimensional array where the lists appear stacked along the first axis, and where the data type is again the least flexible type that can represent all the list elements. However, if the lists are of different sizes, the result will be a 1D array of object type and containing the lists as elements. Version 0.9.0
Ports/Properties¶
array¶
Output array.
in1¶
Input 1.
in2¶
Input 2.
in3¶
Input 3.
in4¶
Input 4.
in5¶
Input 5.
in6¶
Input 6.
in7¶
Input 7.
in8¶
Input 8.
in9¶
Input 9.
inN¶
Additional inputs.. .
require_contiguous¶
Require that inputs are wired in or assigned in contiguous fashion. This means, if you skip some arguments, you get an error.
skip_none¶
Skip None inputs. This will implicitly filter out any arguments that had a None value.
none_if_empty¶
Output None if the resulting list would be empty. None is sometimes used as a Null value in NeuroPype.
verbose¶
Enable verbose output.
backend¶
Optional compute backend to use. Keep is the current default, which resolves to that of the template array if one is provided and otherwise numpy unless overridden. Numpy is the standard CPU backend that underpins most of NeuroPype's operations. The others require one or more GPUs to be present on the system, except for torch-cpu. For best performance, keep all arrays that interact with each other (via processing nodes) on the same backend.
precision¶
Numeric precision to use. Keep resolves to the precision of the template array if one is provided, and otherwise to the current default (usually 64-bit). Can be reduced to save memory (e.g. if running on GPU).
in0¶
Input 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.