Re: [Paraview] How to re-render or update the window through python script

2013-11-08 Thread Junyi Han
Thanks Burlen, it works well now. 2013/11/8 Burlen Loring > you're leaking a dataset with each iteration. You need to > > Delete(reader) > del reader > > each iteration. > > > --- original.py 2013-11-08 11:52:45.746871024 -0800 > +++ fixleak.py 2013-11-08 11:56:32.226876191 -0800 > @@ -15,15

Re: [Paraview] How to re-render or update the window through python script

2013-11-08 Thread Burlen Loring
you're leaking a dataset with each iteration. You need to Delete(reader) del reader each iteration. --- original.py 2013-11-08 11:52:45.746871024 -0800 +++ fixleak.py 2013-11-08 11:56:32.226876191 -0800 @@ -15,15 +15,13 @@ while true == 1: OutPutFile = OutPutLocation+'local_'+str(count

Re: [Paraview] How to re-render or update the window through python script

2013-11-08 Thread Junyi Han
Hi, Thanks for your reply. Below is my script: ''' Created on 29 Oct 2013 @author: Junyi Han ''' from paraview.simple import * PVServer = 'localhost' OutPutLocation = '/home/johnny/Application/DPD/myDPD-PVersion/' exist = 0 count = 0 true = 1 Connect(PVServer) while true == 1: OutPutFile

Re: [Paraview] How to re-render or update the window through python script

2013-11-08 Thread Burlen Loring
it sounds like what happens when one leaks datasets, filters, or other vtk objects that hold large amounts of data. Could you share your script? On 11/08/2013 09:55 AM, Junyi Han wrote: Hi, I'm using python script to read data files. Render() function is called as many times as the number of

[Paraview] How to re-render or update the window through python script

2013-11-08 Thread Junyi Han
Hi, I'm using python script to read data files. Render() function is called as many times as the number of files. I found that after I call render() for 40 or 50 times, the speed of rendering is very slow. Is there a way to solve it? Instead of calling Render() function several times, is there a w