Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Robert Kern
Niels Provos wrote: > Good morning, > > not sure if I got the right list, but I hope that somebody here will > be able to shed some light on a Python-related memory problem. The > following code eats over >2GB of memory and fails with MemoyError > after just a few iterations. Here is a minimal e

Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Robert Kern
Sebastian Haase wrote: > Is there *any* support for old Numeric on this list !? Not unless if you are offering some. > Maybe it should be officially stated that the one way to go is > numpy > and that problems with Numeric ( or numarray ) can only be noticed but > will likely not get fixed T

Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Sebastian Haase
On 2/4/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Niels Provos wrote: > > The missing imports are > > > > import Numeric # for zeros and ones > > from scipy.fftpack import fft2,ifft2 > > > > Curiously, replacing Numeric.zeros with scipy.zeros makes the problem > > go away. Why? > > Possibly a bu

Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Robert Kern
Niels Provos wrote: > The missing imports are > > import Numeric # for zeros and ones > from scipy.fftpack import fft2,ifft2 > > Curiously, replacing Numeric.zeros with scipy.zeros makes the problem > go away. Why? Possibly a bug in Numeric. -- Robert Kern "I have come to believe that the wh

Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Niels Provos
The missing imports are import Numeric # for zeros and ones from scipy.fftpack import fft2,ifft2 Curiously, replacing Numeric.zeros with scipy.zeros makes the problem go away. Why? Thank you, Niels. On 2/4/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Niels Provos wrote: > > Good morning, > >

Re: [Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Robert Kern
Niels Provos wrote: > Good morning, > > not sure if I got the right list, but I hope that somebody here will > be able to shed some light on a Python-related memory problem. The > following code eats over >2GB of memory and fails with MemoyError > after just a few iterations. > > def ZeroPadData

[Numpy-discussion] python eats memory like the cookie monster eats cookies

2007-02-04 Thread Niels Provos
Good morning, not sure if I got the right list, but I hope that somebody here will be able to shed some light on a Python-related memory problem. The following code eats over >2GB of memory and fails with MemoyError after just a few iterations. def ZeroPadData(A, shape): a = Numeric.zeros(sh