diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-30 01:59:33 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-30 01:59:33 +0000 |
commit | 12fb5f95f206627c4f4c4e11b963527850df70f4 (patch) | |
tree | 9ef3b6c85a3412142e69cb734e78e3f8921af0f8 /scipy/base/numeric.py | |
parent | ac853f7e345d949a6be1a7e6a749ce31c4b0d7f9 (diff) | |
download | numpy-12fb5f95f206627c4f4c4e11b963527850df70f4.tar.gz |
Fixed problems revealed by pychecker.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r-- | scipy/base/numeric.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py index f81195e13..10b429613 100644 --- a/scipy/base/numeric.py +++ b/scipy/base/numeric.py @@ -18,14 +18,11 @@ __all__ = ['newaxis', 'ndarray', 'bigndarray', 'flatiter', 'ufunc', 'nan', 'NaN'] import sys -import types, math - import multiarray import umath from umath import * import numerictypes from numerictypes import * -from _compiled_base import _insert def extend_all(module): adict = {} @@ -284,7 +281,6 @@ def load(file): file = _file(file,"rb") return _cload(file) - # These are all essentially abbreviations # These might wind up in a special abbreviations module @@ -318,7 +314,7 @@ def allclose (a, b, rtol=1.e-5, atol=1.e-8): x = array(a, copy=False) y = array(b, copy=False) d = less(absolute(x-y), atol + rtol * absolute(y)) - return alltrue(ravel(d)) + return d.ravel().all() def _setpyvals(lst, frame, where=0): if not isinstance(lst, list) or len(lst) != 3: |