<div dir="ltr"><div><div>Hello, <br><br></div>I need to loop over cells in a composite dataset and then sum up values of one of the arrays for the whole dataset.<br><br></div>I tried to write this in Python Programmable Filter<br>
<br>for block in inputs[0]:
<p style="margin:0px;text-indent:0px">         print block</p>
<p style="margin:0px;text-indent:0px"> temp = block.PointData[&#39;Total_Cl- [m]&#39;]</p>
<p style="margin:0px;text-indent:0px"> result=sum(temp)</p>
<p style="margin:0px;text-indent:0px"> print(result)</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">but when I execute the script, I don´t get any results. Does anybody know what´s going wrong?</p>
<p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Thanks<br></p>
<p style="margin:0px;text-indent:0px"><br></p><br></div>