Here is the traceback that I got: In [1]: import numpy --------------------------------------------------------------------------- exceptions.FloatingPointError Traceback (most recent call last)
/u2/granger/<ipython console> /usr/common/homes/g/granger/usr/local/lib/python/numpy/__init__.py 36 import core 37 from core import * ---> 38 import lib 39 from lib import * 40 import linalg /usr/common/homes/g/granger/usr/local/lib/python/numpy/lib/__init__.py 3 from numpy.version import version as __version__ 4 ----> 5 from type_check import * 6 from index_tricks import * 7 from function_base import * /usr/common/homes/g/granger/usr/local/lib/python/numpy/lib/type_check.py 8 import numpy.core.numeric as _nx 9 from numpy.core.numeric import asarray, array, isnan, obj2sctype, zeros ---> 10 from ufunclike import isneginf, isposinf 11 12 _typecodes_by_elsize = 'GDFgdfQqLlIiHhBb?' /usr/common/homes/g/granger/usr/local/lib/python/numpy/lib/ufunclike.py 44 return y 45 ---> 46 _log2 = umath.log(2) 47 def log2(x, y=None): 48 """Returns the base 2 logarithm of x FloatingPointError: invalid value encountered in log Obviously because I am having the error raised, I only get the first one. Hmmm. Brian On 10/20/06, Tim Hochberg <[EMAIL PROTECTED]> wrote: > Brian Granger wrote: > > Hi, > > > > i am running numpy on aix compiling with xlc. Revision 1.0rc2 works > > fine and passes all tests. But 1.0rc3 and more recent give the > > following on import: > > > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in add > > Warning: invalid value encountered in not_equal > > Warning: invalid value encountered in absolute > > Warning: invalid value encountered in less > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in equal > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in add > > Warning: invalid value encountered in not_equal > > Warning: invalid value encountered in absolute > > Warning: invalid value encountered in less > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in equal > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > Warning: invalid value encountered in multiply > > [lots more of this] > > > > The odd thing is that all tests pass. I have looked, but can't find > > where this Warning is coming from in the code. Any thoughts on where > > this is coming from? What can I do to help debug this? I am not sure > > what revision introduced this issue. > > > The reason that you are seeing this now is that the default error state > has been tightened up. There were some issues with tests failing as a > result of this, but I believe I fixed those already and you're seeing > this on import, not when running the tests correct? The first thing to > do is figure out where the invalids are occurring, and the natural way > to do that is to set the error state to raise, but you can't set the > error state till you import it, so that's not going to help here. > > I think the first thing that I would try is to throw in a > seterr(all='raise', under='ignore') right after the call to _setdef in > numeric.py. If you're lucky, this will point out where the invalids are > popping up. As a sanity check, you could instead make this > seterr(all='ignore'), which should make all the warnings go away, but > won't tell you anything about why there are warnings to begin with. > > Regards, > > -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@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion