Problem introduced after 1.0rc2 on AIX with xlc

Tim Hochberg tim.hochberg at ieee.org
Fri Oct 20 23:21:07 CDT 2006


Brian Granger wrote:
> Tim,
>
> I just tried everything with r3375.  I set seterr(all='warn') and the
> tests passed.  But all the floating point warning are still there.
> With seterr(all='ignore') the warnings go away and all the tests pass.
>  should I worry about the warnings?
>   
Maybe. I just sent you some email on this. But my guess is that the code 
that checks for FP errors is broken on your particular system. Mainly I 
suspect this because I think you would have noticed by now if everything 
was as broken as the warnings seem to indicate. Assuming that's the 
case, and this will probably become clear if you  test a bunch of 
computations that give correct (and non INF/NAN) results, but still spit 
out warnings, you have two choices: try to fix the warnings code or 
disable the warnings. The former would be preferable since then you 
could actually use the warnings code, but it may be a pain in the neck 
unless you can find some place to steal the relevant code from.

-tim


> thanks
>
> Brian
>
>
>
> On 10/20/06, Tim Hochberg <tim.hochberg at ieee.org> wrote:
>   
>> Brian Granger wrote:
>>     
>>> Also, when I use seterr(all='ignore') the the tests fail:
>>>
>>> ======================================================================
>>> FAIL: Ticket #112
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>>   File "/usr/common/homes/g/granger/usr/local/lib/python/numpy/core/tests/test_regression.py",
>>> line 219, in check_longfloat_repr
>>>     assert(str(a)[1:9] == str(a[0])[:8])
>>> AssertionError
>>>
>>> ----------------------------------------------------------------------
>>> Ran 516 tests in 0.823s
>>>
>>> FAILED (failures=1)
>>>
>>> Thanks for helping out on this.
>>>
>>>       
>> How recent is your version? I just a problem that was causing this same
>> failure yesterday -- if you checkout is older than that, you may want to
>> get the most recent stuff from SVN and see if that fixes this.
>>
>> -tim
>>
>>
>> -------------------------------------------------------------------------
>> 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
>> _______________________________________________
>> Numpy-discussion mailing list
>> Numpy-discussion at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>>
>>     
>
> -------------------------------------------------------------------------
> 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
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>
>
>   



-------------------------------------------------------------------------
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




More information about the Numpy-discussion mailing list