Ah...no. Alas, you cannot directly use CreateWriter in the script
for the Programmable Filter. You'll need to use save data after
applying the filter. Alternatively, you can use mpi4py module to
gather the sum result to the root node and then on the root node,
create vtkDelimitedTextWriter
Classification: UNCLASSIFIED
Caveats: NONE
Hello,
In my python script (ran using pvbatch mypythonscript.py in parallel
environment), how do I save out the data I calculated to a file? How will be
parallel execution affect the writing of the output to a file (which process
will be doing the
Simon,
If you're saving out data generated by a pipeline (which can include
Programmable filter or Python calculator), then you should use
CreateWriter(http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/paraview.simple.html#paraview.simple.CreateWriter)
to create a writer and then write the
Classification: UNCLASSIFIED
Caveats: NONE
Hi Utkarsh,
Yes that is exactly what I wanted to do. I am using the programmable filter to
add up all the values for a cell/point variable by iterating through the
number of cells/points using python loop and write out the sum. Is there an
example on