Skip to content

Commit b857684

Browse files
committed
Fix import error for new numpy
svn path=/trunk/matplotlib/; revision=2474
1 parent e202ec9 commit b857684

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2006-06-12 Updated numerix.fft to handle numpy restructuring
2+
Added ImportError to numerix.linear_algebra for numpy -TEO
3+
14
2006-06-11 Added quiverkey command to pylab and Axes, using
25
QuiverKey class in quiver.py. Changed pylab and Axes
36
to use quiver2 if possible, but drop back to the

lib/matplotlib/numerix/fft/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
from FFT import *
77
elif which[0] == "numpy":
88
from numpy.dft import *
9+
try:
10+
from numpy.dft.old import *
11+
except ImportError:
12+
pass
913
else:
1014
raise RuntimeError("invalid numerix selector")

lib/matplotlib/numerix/linear_algebra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from numpy.linalg import *
99
try:
1010
from numpy.linalg.old import *
11-
except:
11+
except ImportError:
1212
pass
1313
else:
1414
raise RuntimeError("invalid numerix selector")

0 commit comments

Comments
 (0)