everytime I've been creating PDG tools I struggled with accessing upstream result data when cooking a whole graph at once.
Example Python Processor:
for upstream_item in upstream_items: print upstream_item.resultData[0]
This will error out with
Traceback (most recent call last):
File "pythonprocessor.generate", line 2, in <module>
IndexError: list index out of range
To prevent this error when cooking the whole graph at once you can instead access expected result data.
for upstream_item in upstream_items: print upstream_item.expectedResultData[0]
But this won't work if you cook the graph node by node (same errorlog).
Any pointers?
I've attached a hipfile showing the issue.