Partition Split by Attribute: Improvement
4217 8 0- Ostap
- Member
- 209 posts
- Joined: Nov. 2010
- Offline
- tpetrick
- Staff
- 578 posts
- Joined: May 2014
- Online
- Ostap
- Member
- 209 posts
- Joined: Nov. 2010
- Offline
- tpetrick
- Staff
- 578 posts
- Joined: May 2014
- Online
- Ostap
- Member
- 209 posts
- Joined: Nov. 2010
- Offline
I would expect 40 partitions because we don't have (in this case) duplicated wedge index, shot and frame is the same time but those partitions should hold a relative (intersected) shot workitem from another node.
In other words:
If we would use the “Merge” node then our wourkitem count is 42 but with partition “Split by Attributes” (wedge, shot) we can have 40 partitions because “shot” attr. has been intersected with 2 groups of other workitems.
Also, “Missing Attribute” parm. can play a key role because 2 workitems don't have a wedge and frame attributes to match (to all other workitems), so “Add work item to all partition” option would assume that missing attributes are equal to comparing workitem attributes.
In other words:
If we would use the “Merge” node then our wourkitem count is 42 but with partition “Split by Attributes” (wedge, shot) we can have 40 partitions because “shot” attr. has been intersected with 2 groups of other workitems.
Also, “Missing Attribute” parm. can play a key role because 2 workitems don't have a wedge and frame attributes to match (to all other workitems), so “Add work item to all partition” option would assume that missing attributes are equal to comparing workitem attributes.
- Ostap
- Member
- 209 posts
- Joined: Nov. 2010
- Offline
- tpetrick
- Staff
- 578 posts
- Joined: May 2014
- Online
- tpetrick
- Staff
- 578 posts
- Joined: May 2014
- Online
A bit of an update for you.
I've made several changes to make what you want possible. Firstly, the partition by frame node has an extra option to it so that work items without a frame can be put into all partitions instead of being ignored:
Secondly, the split by attribute field now accepts a space-separated list of attribute names. Internally it forms tuples of values from those attributes, and groups work items by unique tuple:
Its possible that a work item is missing one or more of the attributes – that's the case the file you sent, where some work items don't have a wedgeindex. There's a new option called “Allow Partial Matches” to handle that case. If that option is enabled, then the work item will be put into all split groups that match the attributes they do have. Those changes are available on all partitioner nodes, not just the partition by frame.
For example, if you have work items with a shot of 1 or 2 and a wedgeindex on one branch, then on the other branch you have work items with only a shot of 1 or 2. The work items that only have the shot will go into all matching groups regardless of the wedge index:
I've attached an update copy of your example file, but basically you need to change the “Missing Frame” parameter to “Add Work Item to All Partitions”, set the “Split by Attribute” to “wedge shot”, and enable “Allow Partial Matches”. Those changes were enabled last week, so they'll be available in the latest daily build of 18.0.
I've made several changes to make what you want possible. Firstly, the partition by frame node has an extra option to it so that work items without a frame can be put into all partitions instead of being ignored:
Secondly, the split by attribute field now accepts a space-separated list of attribute names. Internally it forms tuples of values from those attributes, and groups work items by unique tuple:
Its possible that a work item is missing one or more of the attributes – that's the case the file you sent, where some work items don't have a wedgeindex. There's a new option called “Allow Partial Matches” to handle that case. If that option is enabled, then the work item will be put into all split groups that match the attributes they do have. Those changes are available on all partitioner nodes, not just the partition by frame.
For example, if you have work items with a shot of 1 or 2 and a wedgeindex on one branch, then on the other branch you have work items with only a shot of 1 or 2. The work items that only have the shot will go into all matching groups regardless of the wedge index:
I've attached an update copy of your example file, but basically you need to change the “Missing Frame” parameter to “Add Work Item to All Partitions”, set the “Split by Attribute” to “wedge shot”, and enable “Allow Partial Matches”. Those changes were enabled last week, so they'll be available in the latest daily build of 18.0.
Edited by tpetrick - Sept. 8, 2020 13:26:39
- Ostap
- Member
- 209 posts
- Joined: Nov. 2010
- Offline
-
- Quick Links