Re: [Numpy-discussion] numpy.ma.allclose bug

2008-11-21 Thread Pierre GM
Charles, That should be fixed in r6087. In your example, the last statement outputs False instead of raising an exception. Note the deprecation warning: instead of fill_value, you want to use masked_equal to decide whether missing values should be considered True or False. Let me know how it

[Numpy-discussion] numpy.ma.allclose bug

2008-11-20 Thread Charles سمير Doutriaux
The following shows a bug in numpy.ma.allclose: import numpy import numpy.ma a = numpy.arange(100) b=numpy.reshape(a,(10,10)) print b c=numpy.ma.masked_greater(b,98) print c.count() numpy.ma.allclose(b,1) numpy.ma.allclose(c,1) Since c is masked it fails I think it should pass returning