Loop over work-items in partition in Python script node

   1111   1   0
User Avatar
Member
1 posts
Joined: Nov. 2020
Online
Hi!

How do I access all the work-items in a partition in a python script node?

I'm using a custom python bin and cooking out of process, but can't even get this to work with the default python script node.
Ideally I'd use something like:

for items in partition:
#do something

Any help would be much appreciated!

Attachments:
tops.PNG (75.6 KB)

User Avatar
Staff
586 posts
Joined: May 2014
Offline
You can access the contents of an upstream partition using parent_item.partitionItems if you're cooking in-process. If you're cooking out of process, there currently is no way to access data outside of the work item associated with the script.
Edited by tpetrick - Dec. 14, 2020 10:55:15
  • Quick Links