[Numpy-discussion] ImportError: cannot import name inverse_fft (original) (raw)

David M. Cooke cookedm at physics.mcmaster.ca
Mon Jun 12 18:33:44 EDT 2006


On Mon, 12 Jun 2006 09:02:54 +0200 Nils Wagner <nwagner at iam.uni-stuttgart.de> wrote:

matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl-data $HOME=/home/nwagner loaded rc file /home/nwagner/matplotlibrc matplotlib version 0.87.3 verbose.level helpful interactive is False platform is linux2 numerix numpy 0.9.9.2603 Traceback (most recent call last): File "cascade.py", line 3, in ? from pylab import plot, show, xlim, ylim, subplot, xlabel, ylabel, title, legend,savefig,clf,scatter File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py", line 198, in ? import mlab #so I can override hist, psd, etc... File "/usr/lib64/python2.4/site-packages/matplotlib/mlab.py", line 74, in ? from numerix.fft import fft, inversefft ImportError: cannot import name inversefft

It's a bug in matplotlib: it should use ifft for numpy. We cleaned up the namespace a while back to not have two names for things. (Admittedly, I'm not sure why we went with the short names instead of the self-descriptive long ones. It's in the archives somewhere.)

-- |>|/|< /--------------------------------------------------------------------------
|David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm at physics.mcmaster.ca



More information about the NumPy-Discussion mailing list