Up: Component summary Component

ArraySplit

Divides array keys evenly in to N arrays. Creates a maximum of 9 arrays (extendable with subset).

Version 1.1
Bundle builtin
Categories
Specialties generic
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Requires python
Source files component.xml arraysplitter.py
Usage Example with default values

Type parameters (generics)

Inputs

Name Type Mandatory Description
in Array<T> (generic) Mandatory input array

Outputs

Name Type Description
out1 Array<T> (generic) output array 1.
out2 Array<T> (generic) output array 2.
out3 Array<T> (generic) output array 3.
out4 Array<T> (generic) output array 4.
out5 Array<T> (generic) output array 5.
out6 Array<T> (generic) output array 6.
out7 Array<T> (generic) output array 7.
out8 Array<T> (generic) output array 8.
out9 Array<T> (generic) output array 9.

Parameters

Name Type Default Description
N int 2 Divide array into N arrays. (max 9 arrays created, unless subset used)
order string "port" 'port': output port changes for every consecutive array item. 'array': first output is filled first, then move on to second ...
subset int 0 When value is greater than 0, instead of creating N output arrays, output array out1 works as a virtual out[subset] output. This allows you to use more than 9 output arrays for instance in a for-loop.

Test cases

Test case Parameters IN
in
OUT
out1
OUT
out2
OUT
out3
OUT
out4
OUT
out5
OUT
out6
OUT
out7
OUT
out8
OUT
out9
case1 properties in out1 out2 out3 out4 out5 out6 out7 out8 out9

N=4

case2_subset properties in out1 out2 out3 out4 out5 out6 out7 out8 out9

N=4,
subset=2

case3_arrayorder properties in out1 out2 out3 out4 out5 out6 out7 out8 out9

N=4,
order=array


Generated 2019-02-08 07:42:08 by Anduril 2.0.0