[Numpy-discussion] Runtime Warning by numpy.divide(0.0, 0.0) can't be ignored

2013-09-23 Thread Lorenzo Di Gregorio
Hello, numpy.divide(0.0,0.0) raises a warning which doesn't appear to get caught by numpy.seterr(divide='ignore') This example: import numpy numpy.divide(0.0,0.0) numpy.divide(1.0,0.0) numpy.seterr(divide='ignore') numpy.divide(1.0,0.0) numpy.divide(0.0,0.0) produces this output: Warning

Re: [Numpy-discussion] Runtime Warning by numpy.divide(0.0, 0.0) can't be ignored

2013-09-23 Thread Robert Kern
On Monday, September 23, 2013, Lorenzo Di Gregorio wrote: Hello, numpy.divide(0.0,0.0) raises a warning which doesn't appear to get caught by numpy.seterr(divide='ignore') This example: import numpy numpy.divide(0.0,0.0) numpy.divide(1.0,0.0) numpy.seterr(divide='ignore')