diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-06-12 22:58:43 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-06-12 22:58:43 +0000 |
commit | fbf0b479604c22e60215bb28cdedabfb821b9d75 (patch) | |
tree | ff1c02a4a21aec9998b57d7aff01a34573aa21c2 /numpy/lib/function_base.py | |
parent | b5e35c7c5c715d58aca9638e40098d044b8b8dba (diff) | |
download | numpy-fbf0b479604c22e60215bb28cdedabfb821b9d75.tar.gz |
Check-in name-space changes so that numpy.oldnumeric is the compatibility module and numpy does not contain all of the names.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 934f7da33..778aa1e09 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -17,8 +17,8 @@ from numpy.core.numeric import ones, zeros, arange, concatenate, array, \ from numpy.core.numeric import ScalarType, dot, where, newaxis from numpy.core.umath import pi, multiply, add, arctan2, \ frompyfunc, isnan, cos, less_equal, sqrt, sin, mod, exp -from numpy.core.oldnumeric import ravel, nonzero, choose, \ - typecodes, sort +from numpy.core.fromnumeric import ravel, nonzero, choose, sort +from numpy.core.numerictypes import typecodes from numpy.lib.shape_base import atleast_1d from numpy.lib.twodim_base import diag from _compiled_base import digitize, bincount, _insert, add_docstring @@ -160,7 +160,7 @@ def asarray_chkfinite(a): """Like asarray, but check that no NaNs or Infs are present. """ a = asarray(a) - if (a.dtype.char in _nx.typecodes['AllFloat']) \ + if (a.dtype.char in typecodes['AllFloat']) \ and (_nx.isnan(a).any() or _nx.isinf(a).any()): raise ValueError, "array must not contain infs or NaNs" return a |