|On this page|
This node can be used to expand ether an upstream item’s output file list, array attribute value, or a partition into multiple work items. Example use cases:
A work item has 30 output files associated with it, and you'd like to create a new work item for each of those 30 files.
A partition has some number of work items in it, and you'd like to create a new work item for each group of 5 items in the partition.
A work item has an attribute with multiple values in it, and you wish to do some processing on each value in separate work item.
The size of the expanded group of work items. For example if Expansion Type
is set to a Fixed Count of 3 and there are 12 items in the partition being
When Apply Expansion To is set to Upstream Attribute, work items are created for each value in the specified upstream attribute. This attribute will contain the value from that slice of that array associated with each work item in this node. For other expansion types, this attribute is not set.
Work Item Generation
Whether this node generates static or dynamic work items. You should generally leave this set to "Automatic" unless you know the node’s work items can be computed statically, or that they need to be generated dynamically.
This node always creates dynamic work items: it waits until the upstream work items are known, and generates new work items from the upstream work items.
This node always creates static work items: it creates the number of work items it thinks it needs based on the parameters (and any upstream static items) before the network runs.
If the input is static (a static processor, or a partitioner with only static inputs, or a mapper), this node generates static work items, otherwise it generates dynamic work items.
Apply Expansion To
Determines what will be expanded.
Upstream Output Files
For each upstream work item, expands the output files into more work items.
Items in Upstream Partitions
For each upstream partition, expands the items in the partition into more work items.
For each upstream work, expands the attribute specified in the Expansion Attribute
parameter into more work items. Each work item in this node will have an
expandvalue attribute that contains a slice of the values from the expanded
Note: This also works with iterable Python Object attributes.
When Apply Expansion To is set to Upstream Attribute, this parameter specifies the name of the attribute that should be used when expanding work items. The attribute should be an array with a length greater than q, since a work item will be created for each value in the attribute.
Include Expected Output Files
When Apply Expansion To is set to Upstream Output Files, this toggle controls whether or not the expansion should also include upstream expected outputs in addition to regular output files. By default, expected output files are not included.
Determines the relationship between the elements being expanded and the new work items.
One to One
A new work item will be created for each upstream file or for each work item in the upstream partition.
The upstream files or partitioned items will be put into fixed size groups based on Value, a new work item will be created for each of those groups.
The upstream files or partitioned items will be distributed amongst a fixed number of groups based on Value, a new work item will be created for each of those groups.
The first N upstream files or partitioned items will be expanded back into individual work items. The value of N is determined by the Value parameter.
The last N upstream files or partitioned items will be expanded back into individual work items. The value of N is determined by the Value parameter.
When using an expansion type other than One to One, this parameter determines the way the upstream elements are grouped.
Set Work Item Frame
When this toggle is enabled, the expanded work items have their frame set based on their position within the list of expanded items.
Preserve Source Index
When this toggle is enabled the work item index is set to the index of the upstream partition or output file that was used for expansion.