python - memory leak while using pvpython script -
Text after "div class =" itemprop = "text">
I wrote a script for pvpython to convert a batch of VTK-files to binary VTU-files. Paraview.simple import from *
print imported sys 'number of files changed:', lane (sys.argv) - for 1 in range (1, lane (sys.argv) ): Inputfile = str (Sys.argv [x]) outputFile = inputFile [: - 1] + 'U' print x, ': changed', inputfile, '- & gt; ', Outputfile r = LegacyVTKReader (file name = inputfile) w = XMLUnstructuredGridWriter () w.FileName = outputfile w.UpdatePipeline ()
I have a folder inside around 2000 with vtk- Files run like this:.
pvpython
Come off the leak?
I'm still new to Python I have to manually delete the variable at the end of a loop?
After
use a view> delete
call e.g.
Delete w.UpdatePipeline () and delete (r)
Comments
Post a Comment