[SciPy-user] fft giving error

Alan Jackson alan at ajackson.org
Thu Oct 19 23:03:25 EDT 2006


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
     
     from scipy.io import read_array
     sunspot = read_array('sunspots.dat')
     
     year=sunspot[:,0]
     wolfer=sunspot[:,1]
     Y=fft(wolfer)

and I get the following error....


In [68]: Y=fft(wolfer)
---------------------------------------------------------------------------
exceptions.TypeError                                 Traceback (most recent call last)

/home/ajackson/projects/cyclicity/<console> 

TypeError: 'module' object is not callable


Running gentoo Linux, 2.6.16-gentoo-r3, AMD Athlon X2 64 bit,
blas-atlas-3.7.17
lapack-atlas-3.7.17
scipy-0.5.1
numpy-1.0_rc1
python-2.4.3

Parenthetically, it all builds quite nicely with the gentoo emerge. Kudos
to the gentoo package maintainers.

-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan at ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------



More information about the SciPy-User mailing list