From ff1c6632c9313027a58f13797dc58127bcaededf Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Mon, 16 Oct 2006 17:44:09 +0000 Subject: Fix finfo eps and huge to be array scalars of the appropriate type. And use finfo interface instead of MachAr. --- numpy/lib/getlimits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/getlimits.py') diff --git a/numpy/lib/getlimits.py b/numpy/lib/getlimits.py index 297ef9b36..d03f000c1 100644 --- a/numpy/lib/getlimits.py +++ b/numpy/lib/getlimits.py @@ -80,9 +80,9 @@ class finfo(object): setattr(self,word,getattr(machar, word)) for word in ['tiny','resolution','epsneg']: setattr(self,word,getattr(machar, word).squeeze()) - self.max = machar.huge.squeeze() + self.max = machar.huge.flat[0] self.min = -self.max - self.eps = machar.epsilon.squeeze() + self.eps = machar.eps.flat[0] self.nexp = machar.iexp self.nmant = machar.it self.machar = machar -- cgit v1.2.1