You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("numerix selector must be either 'Numeric', 'numarray', or 'scipy' but the value obtained from the %s was '%s'."% (which[1], which[0]))
raiseValueError("numerix selector must be either 'Numeric', 'numarray', or 'numpy' but the value obtained from the %s was '%s'."% (which[1], which[0]))
49
49
50
50
ifwhich[0] =="numarray":
51
51
#from na_imports import *
@@ -62,17 +62,17 @@
62
62
fromMatriximportMatrix
63
63
importNumeric
64
64
version='Numeric %s'%Numeric.__version__
65
-
elifwhich[0] =="scipy":
66
-
importscipy
67
-
fromscipyimport*
65
+
elifwhich[0] =="numpy":
66
+
importnumpy
67
+
fromnumpyimport*
68
68
from_sp_importsimportnx, infinity
69
69
from_sp_importsimportUInt8, UInt16, UInt32
70
70
Matrix=matrix
71
-
version='scipy'# Don't know how to get scipy version
71
+
version='numpy %s'%numpy.__version__
72
72
else:
73
73
raiseRuntimeError("invalid numerix selector")
74
74
75
-
# Some changes are only applicable to the new scipy:
75
+
# Some changes are only applicable to the new numpy:
76
76
if (which[0] =='numarray'or
77
77
which[0] =='numeric'):
78
78
deftypecode(a):
@@ -86,16 +86,16 @@ def itemsize(a):
86
86
87
87
else:
88
88
# We've already checked for a valid numerix selector,
0 commit comments