summaryrefslogtreecommitdiff
path: root/numpy/core/getlimits.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-07-17 15:32:21 +0000
committerPauli Virtanen <pav@iki.fi>2010-07-17 15:32:21 +0000
commit4bee2b42b48374dd5824e94c033327136bd6e35c (patch)
tree742dbcd2a5d422ed9454fe2557c5e4f8088d60d0 /numpy/core/getlimits.py
parent08683302b493e2be0ab30661018c4b5f97c90995 (diff)
downloadnumpy-4bee2b42b48374dd5824e94c033327136bd6e35c.tar.gz
BUG: core: finfo.tiny, resolution, and epsneg should be scalars (#1538)
Diffstat (limited to 'numpy/core/getlimits.py')
-rw-r--r--numpy/core/getlimits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py
index 97c12cc6b..4fa020e86 100644
--- a/numpy/core/getlimits.py
+++ b/numpy/core/getlimits.py
@@ -145,7 +145,7 @@ class finfo(object):
'machep']:
setattr(self,word,getattr(machar, word))
for word in ['tiny','resolution','epsneg']:
- setattr(self,word,getattr(machar, word).squeeze())
+ setattr(self,word,getattr(machar, word).flat[0])
self.max = machar.huge.flat[0]
self.min = -self.max
self.eps = machar.eps.flat[0]