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
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview