hi !

  I have some stuff like this in a python programmable filter.

pressureForce = inputs[0].PointData['pressureForce']

viscousForce = inputs[0].PointData['viscousForce']

points = inputs[0].Points

with open('blah','w') as f:

     for i in range(size(points,0)):

          f.write("%s %s \n" % (pressureForce[i,0], viscousForce[i,0]))


 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'm going to be writing a LOT of data.


ganesh
_______________________________________________
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

Reply via email to