<div dir="ltr">hi !<br><br>
<div>  I have some stuff like this in a python programmable filter. </div><div><br></div><div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">pressureForce = inputs[0].PointData[&#39;pressureForce&#39;]</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">viscousForce = inputs[0].PointData[&#39;viscousForce&#39;]</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
points = inputs[0].Points</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">with open(&#39;blah&#39;,&#39;w&#39;) as f:</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
     for i in range(size(points,0)):</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">          f.write(&quot;%s %s \n&quot; % (pressureForce[i,0], viscousForce[i,0]))</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> Now this creates problems when I run it in parallel. I have tried using CSV writers... they output all data and not just what I want. Any chance I can write it on my own? I would prefer to write just the data I want in binary (e.g pickle) since I&#39;m going to be writing a LOT of data.<br>
</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">ganesh</p></div></div>