[Paraview] Looping over cells of a composite dataset
Hedieh Ebrahimi
hedieh.ebrahimi at amphos21.com
Wed Apr 3 11:04:27 EDT 2013
Hello,
I need to loop over cells in a composite dataset and then sum up values of
one of the arrays for the whole dataset.
I tried to write this in Python Programmable Filter
for block in inputs[0]:
print block
temp = block.PointData['Total_Cl- [m]']
result=sum(temp)
print(result)
but when I execute the script, I don´t get any results. Does anybody know
what´s going wrong?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130403/2afd72a7/attachment.htm>
More information about the ParaView
mailing list