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

josef.pktd@gmai... josef.pktd@gmai...
Fri Jan 16 10:28:08 CST 2009

On Fri, Jan 16, 2009 at 10:59 AM, Pierre GM <pgmdevlist@gmail.com> wrote:
> On Jan 16, 2009, at 10:51 AM, josef.pktd@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.
>> ...
>> Whats the trick to assert_almost_equal for masked arrays?
> Us numpy.ma.testutils.assert_almost_equal instead.

Thanks, when I looked at the test files for mstats, I forgot to check
the imports.


More information about the Numpy-discussion mailing list