Unit test error with numpy rc3

Mark Hymers mark at hymers.org.uk
Tue Oct 24 04:46:37 CDT 2006


On Mon, 23, Oct, 2006 at 11:50:27AM +0100, Mark Hymers spoke thus..
> Hi,
> 
> I've just done a Mac OS X PPC build of the SVN trunk and am getting this
> failure too.
<snip>
> FAIL: Ticket #112
</snip>

I've just been looking into this a bit further (though I may be heading
down the wrong road) and come across this which doesn't exactly look
right.  Again this is on a PPC Mac OS X 10.4 install:

In [1]: import numpy

In [2]: numpy.__version__ 
Out[2]: '1.0.dev3390'

In [3]: print numpy.finfo(numpy.float32).min, numpy.finfo(numpy.float32).max, numpy.finfo(numpy.float32).eps
-3.40282346639e+38 3.40282346639e+38 1.19209289551e-07

In [4]: print numpy.finfo(numpy.float64).min, numpy.finfo(numpy.float64).max, numpy.finfo(numpy.float64).eps
-1.79769313486e+308 1.79769313486e+308 2.22044604925e-16

In [5]: print numpy.finfo(numpy.float128).min, numpy.finfo(numpy.float128).max, numpy.finfo(numpy.float128).eps
Warning: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
Warning: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
9223372034707292160.0 -9223372034707292160.0 1.38178697010200053743e-76

Anyone got any comments /thoughts on this?  Should I file it as a bug?
I just tested this on an x86 Linux box (running Debian though that
should be irrelevant) and numpy.float128 doesn't exist on x86 Linux
but float96 does gives:
>>> print numpy.finfo(numpy.float96).min, numpy.finfo(numpy.float96).max, numpy.finfo(numpy.float96).eps
-1.18973149535723176502e+4932 1.18973149535723176502e+4932 1.08420217248550443401e-19

which seems right.

Any ideas?

Cheers,

Mark

-- 
Mark Hymers <mark at hymers dot org dot uk>

"The relationship between journalists and politicians has often been likened
 to that between a dog and a lamp post, although I have never worked out who
 is supposed to be which."
     Nick Assinder, BBC Online Political Correspondent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061024/4f54550e/attachment.bin 
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the Numpy-discussion mailing list