>>>>> "Juerg" == Juerg Schmidli <[EMAIL PROTECTED]> writes:
Juerg> Prabhu Ramachandran wrote:
>>>>>>> "Juerg" == Juerg Schmidli <[EMAIL PROTECTED]> writes:
>>
Juerg> Hi I have four-dimensional data stored in a netcdf file and
Juerg> want to create an isosurface visualization for each time
Juerg> step in the file (>100 times) and save the resulting image
Juerg> as a PNG-file.
>>
Juerg> The problem is that after a few iterations I run out of
Juerg> memory. How do I correctly destroy the tvtk and mayavi
Juerg> objects which I have created before entering into the next
Juerg> iteration?
>> Can you try again now after you update from SVN? I think I
>> may have fixed a potential cause of the problem. You may also
>> want to do
>>
>> import gc gc.collect()
>>
>> a few times to collect reference cycles.
Juerg> Thanks, the memory is now beeing freed up.
Great! Just curious, does the memory free up without the gc.collect()
call?
[...]
Juerg> What is the best way forward in order to run the script
Juerg> (on-screen or off-screen) but still being able to switch
Juerg> windows and work with other applications while the script
Juerg> is running?
VTK has improved off screen support for Linux and Mac in CVS. I don't
know why those changes did not make it into the VTK-5.0.3 release.
BTW, I hate to say it but under win32, this should not be a problem
since win32 has a native offscreen context that has been working for a
while.
Your realistic options are, 1) to upgrade VTK to a CVS version or, 2)
to use the framebuffer approach which is described here:
http://www.scipy.org/Cookbook/MayaVi/Tips#head-4a63b11c31ba5beb86bd503c13b70cb39296be1f
Or if you want a shorted form:
http://xrl.us/7isn
HTH.
cheers,
prabhu
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users