SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Problem with importing fft

From: John H. <jdh...@ac...> - 2005年12月23日 20:23:15
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 >> For others trying to use things as they are now, the following
 >> quick fix gets most things to work: Just change __init__.py in
 >> site-packages/matplotlib/numerix/fft from: elif which[0] ==
 >> "scipy": from scipy.basic.fft import * to: elif which[0] ==
 >> "scipy": # from scipy.basic.fft import * from
 >> scipy.basic.fftpack import *
 >> 
 Eric> John,
 Eric> It looks like this could be handled in CVS mpl with:
 Eric> elif which[0] == "scipy": from scipy.fftpack import *
 Eric> scipy itself imports basic.fft (released version) or
 Eric> basic.fftpack (SVN) as fftpack, so there is no need to go to
 Eric> scipy.basic. Correct?
 Eric> I haven't tested it yet, though. If no one gets to it
 Eric> sooner, I may be able to take a closer look this evening.
I don't think this works with the latest release
In [2]: import scipy
In [3]: scipy.__core_version__
Out[3]: '0.8.4'
In [4]: import scipy.fftpack
------------------------------------------------------------
Traceback (most recent call last):
 File "<console>", line 1, in ?
ImportError: No module named fftpack
Although scipy.fftpack is defined in 0.8.4, you can't import from it
like a normal module.
JDH

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /