From 4742ef06a5888264488fc250d40d7ad47b718cb2 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 29 Sep 2005 00:52:06 +0000 Subject: a.flags returns fancy array-connected dictionary. --- scipy/base/getlimits.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scipy/base/getlimits.py') diff --git a/scipy/base/getlimits.py b/scipy/base/getlimits.py index 93f37954f..839f45dee 100644 --- a/scipy/base/getlimits.py +++ b/scipy/base/getlimits.py @@ -14,7 +14,7 @@ def frz(a): a = a.reshape((1,)) return a -_machar_cache = {numeric.float: \ +_machar_cache = {numeric.afloat: \ MachAr(lambda v:array([v],'d'), lambda v:frz(v.astype('i'))[0], lambda v:array(frz(v)[0],'d'), @@ -27,8 +27,8 @@ class finfo(object): dtype = numeric.obj2dtype(dtype) if not issubclass(dtype, numeric.floating): raise ValueError, "data type not a float" - if dtype is numeric.float: - self.machar = _machar_cache[numeric.float] + if dtype is numeric.afloat: + self.machar = _machar_cache[numeric.afloat] elif dtype is numeric.single: try: self.machar = _machar_cache[numeric.single] -- cgit v1.2.1