Re: [Tutor] Memory Leak?

2008-05-07 Thread Jeff Younker
I followed the advice on this page: http://mail.python.org/pipermail/python-list/2006-December/417208.html and the problem is now gone. There are two pieces of advice on that page. Which did you follow? - Jeff Younker - [EMAIL PROTECTED] - ___ T

Re: [Tutor] Memory Leak?

2008-05-07 Thread Kent Johnson
On Wed, May 7, 2008 at 6:03 PM, Keith Suda-Cederquist <[EMAIL PROTECTED]> wrote: > I followed the advice on this page: > http://mail.python.org/pipermail/python-list/2006-December/417208.html > and the problem is now gone. Which advice did you follow? There are quite a few suggestions on that p

Re: [Tutor] Memory Leak?

2008-05-07 Thread Keith Suda-Cederquist
So I started commenting things out until I isolated the problem. For some reason when I plot some of the data using pylab/matplotlib, then close the figure using pylab.close() the memory doesn't get cleared. (I left this part out of my psedo-code in my previous post--Sorry!). I followed the ad

Re: [Tutor] Memory Leak?

2008-05-07 Thread Tony Cappellini
Message: 5 Date: Wed, 7 May 2008 16:18:23 -0400 From: "Michael Langford" <[EMAIL PROTECTED]> Subject: Re: [Tutor] Memory Leak? To: "Keith Suda-Cederquist" <[EMAIL PROTECTED]> Cc: Python Tutor List Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" >>You can alw

Re: [Tutor] Excluding a directory in a script...

2008-05-07 Thread bob gailer
Spencer Parker wrote: here is the code: http://dpaste.com/48734/ Please show us the traceback. -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Memory Leak?

2008-05-07 Thread Kent Johnson
On Wed, May 7, 2008 at 3:50 PM, Keith Suda-Cederquist <[EMAIL PROTECTED]> wrote: > Hi, > > I'm doing some image processing using PIL and SciPy. Individual images are > 2000x2000 pixels with each pixel being 16 bits, so a single image is around > 7 MB in size. > > I've noticed that while my code is

Re: [Tutor] Excluding a directory in a script...

2008-05-07 Thread Kent Johnson
On Wed, May 7, 2008 at 3:34 PM, Spencer Parker <[EMAIL PROTECTED]> wrote: > I have a script that is just basically looking for a disk image in a > directory...it lists all the directories in the main disk image directory > then appends disk.img to the end to build the full file path. I have one >

Re: [Tutor] Memory Leak?

2008-05-07 Thread Michael Langford
You can always make a subclass of the classes you're thinking aren't being garbage collected and put a print statement in their __del__ functions to show you when they are. That will show you if/which objects aren't being deleted. Do you have any global variables? --Michael On Wed, Ma

Re: [Tutor] Excluding a directory in a script...

2008-05-07 Thread Spencer Parker
here is the code: http://dpaste.com/48734/ On Wed, May 7, 2008 at 1:57 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 3:34 PM, Spencer Parker <[EMAIL PROTECTED]> > wrote: > > I have a script that is just basically looking for a disk image in a > > directory. > > Please show

[Tutor] Memory Leak?

2008-05-07 Thread Keith Suda-Cederquist
Hi, I'm doing some image processing using PIL and SciPy. Individual images are 2000x2000 pixels with each pixel being 16 bits, so a single image is around 7 MB in size. I've noticed that while my code is running the amount of memory being used (as reported by Windows Task Manager) by Python gr

Re: [Tutor] Excluding a directory in a script...

2008-05-07 Thread Kent Johnson
On Wed, May 7, 2008 at 3:34 PM, Spencer Parker <[EMAIL PROTECTED]> wrote: > I have a script that is just basically looking for a disk image in a > directory. Please show us the script. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/

[Tutor] Excluding a directory in a script...

2008-05-07 Thread Spencer Parker
I have a script that is just basically looking for a disk image in a directory...it lists all the directories in the main disk image directory then appends disk.img to the end to build the full file path. I have one directory that holds old images in it for deletion at a later date. This director