Search - User list
Full Version: Making The output file size an attribute
Root » PDG/TOPs » Making The output file size an attribute
SuekieZA
Hey there, I would like to make the rop fetch output file size and attribute so I can use it in an overlay later on in the graph. Any pointers on how to do this
kenxu
Yes, the output file size is an intrinsic property on workitems (not a regular attribute). It is something we don’t want downstream workitems to inherit, which would be true if it’s an attribute. To make it into an attribute, we looking into making an attribute promote node that can do such things (and more), but in the mean time the best thing is to use a python processor. You can access the upstream workitem and create an attribute from the upstream workitem’s file size. Note that by doing this your node (and thus downstream graph) will need to be dynamic - the file size is not known until the upstream item is actually computed.
SuekieZA
I created a python script for it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB