[SciPy-user] fft giving error

Pierre GM pgmdevlist at gmail.com
Thu Oct 19 23:14:49 EDT 2006


On Thursday 19 October 2006 23:03, Alan Jackson wrote:
> I'm trying to run the example from
> http://linuxgazette.net/115/andreasen.html to plot the frequency spectrum
> of sunspot numbers from ipython...
>
>      from scipy import *
>      from scipy import fftpack

When you type 
from scipy import *
I think you also import the fft module from numpy (as there's a from numpy 
import * in scipy.__init__). So 'fft' is the package numpy.fft
When you type
from scipy import fftpack
the fft routine is available as fftpack.fft

So, if you wanna overwrite fft, you should do
from scipy.fftpack import *





More information about the SciPy-User mailing list