[vtkusers] python interface to multithreader?

Alexandre Guimond guimond at bwh.harvard.edu
Thu Feb 28 17:27:36 EST 2002


Hi.  I'm trying to figure out how to set the number of threads to use
from a python script, but I can't figure it out (I have 4 procs but I
only want to use 1 to debug).  Does anyone know how to do that?

Also, I assumed that when I 'del SomeVtkObject' from python, the
memory would be delete.  That doesn't seem to be the case.  For
example, if I load an image with vtkImageReader, then Update, and then
'del reader', the python interpreter still uses the memory used to
load the image.  At least, that's what 'top' reports.  Any clues on
how to preperly destroy vtk objects in python and release the memory?
Is there some weird garbage collection thing I should use?

BTW, I'm using the CVS version of vtk3.2 on sparc, solaris 7, and
python2.1.1
-- 
Alexandre Guimond, Ph.D. <guimond at bwh.harvard.edu> Phone: 617.278.0800
Instructor in Radiology, Harvard Medical School    Fax  : 617.264.5154
Brigham and Women's Hospital, Department of Radiology
Center for Neurological Imaging, 221 Longwood Av, Boston, MA 02115



More information about the vtkusers mailing list