[Numpy-discussion] numpy FFT memory accumulation

Ray S subscriber100 at rjs.org
Wed Oct 31 18:58:32 EDT 2007


I am using
fftRes = abs(fft.rfft(data_array[end-2**15:end]))
to do running analysis on streaming data. The N never changes.
It sucks memory up at ~1MB/sec with 70kHz data rate and 290 ffts/sec.
(Interestingly, Numeric FFT accumulates much slower..)
(Commenting out that one line stops memory growth.)

What can one do to alleviate this?
Can I del() some numpy object or such?
It's a bit of an issue for a program that needs to run for weeks.

It's purpose is simply to argmax() the largest bin, which always 
falls within a small range - do I have another, better option than 
fft?

Cheers,
Ray Schumacher
Blue Cove Interactive




More information about the NumPy-Discussion mailing list