diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 00:52:06 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-29 00:52:06 +0000 |
commit | 4742ef06a5888264488fc250d40d7ad47b718cb2 (patch) | |
tree | e3134ef2977e4d191b8b0672757367235b5d0871 /scipy/base/getlimits.py | |
parent | a8240d84ad9317a8c6e08e45c5cabdb7b562b6f5 (diff) | |
download | numpy-4742ef06a5888264488fc250d40d7ad47b718cb2.tar.gz |
a.flags returns fancy array-connected dictionary.
Diffstat (limited to 'scipy/base/getlimits.py')
-rw-r--r-- | scipy/base/getlimits.py | 6 |
1 files changed, 3 insertions, 3 deletions
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] |