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:
> &g
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