Re: [Numpy-discussion] numpy.testing.asserts and masked array

2012-12-27 Thread Chao YUE
Thanks. I tried again, it works. On Thu, Dec 27, 2012 at 10:35 PM, Ralf Gommers wrote: > from numpy.ma import testutils > -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 15

Re: [Numpy-discussion] numpy.testing.asserts and masked array

2012-12-27 Thread Ralf Gommers
On Thu, Dec 27, 2012 at 12:23 AM, Chao YUE wrote: > Dear all, > > I found here > http://mail.scipy.org/pipermail/numpy-discussion/2009-January/039681.html > that to use* numpy.ma.testutils.assert_almost_equal* for masked array > assertion, but I cannot find the np.ma.testutils module? > Am I gett

[Numpy-discussion] numpy.testing.asserts and masked array

2012-12-26 Thread Chao YUE
Dear all, I found here http://mail.scipy.org/pipermail/numpy-discussion/2009-January/039681.html that to use* numpy.ma.testutils.assert_almost_equal* for masked array assertion, but I cannot find the np.ma.testutils module? Am I getting somewhere wrong? my numpy version is 1.6.2 thanks! Chao --

Re: [Numpy-discussion] numpy.testing.asserts and masked array

2009-01-16 Thread josef . pktd
On Fri, Jan 16, 2009 at 10:59 AM, Pierre GM wrote: > > On Jan 16, 2009, at 10:51 AM, josef.p...@gmail.com wrote: > >> I have a regression result with masked arrays that produces a masked >> array output, estm5.yhat, and I want to test equality to the benchmark >> case, estm1.yhat, with the asserts

Re: [Numpy-discussion] numpy.testing.asserts and masked array

2009-01-16 Thread Pierre GM
On Jan 16, 2009, at 10:51 AM, josef.p...@gmail.com wrote: > I have a regression result with masked arrays that produces a masked > array output, estm5.yhat, and I want to test equality to the benchmark > case, estm1.yhat, with the asserts in numpy.testing, but I am getting > strange results. > .

[Numpy-discussion] numpy.testing.asserts and masked array

2009-01-16 Thread josef . pktd
I have a regression result with masked arrays that produces a masked array output, estm5.yhat, and I want to test equality to the benchmark case, estm1.yhat, with the asserts in numpy.testing, but I am getting strange results. checking for equality directly returns True, but the asserts in numpy.t