From 12fb5f95f206627c4f4c4e11b963527850df70f4 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 30 Dec 2005 01:59:33 +0000 Subject: Fixed problems revealed by pychecker. --- scipy/base/numeric.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scipy/base/numeric.py') 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: -- cgit v1.2.1