[Numpy-discussion] numpy.testing.asserts and masked array
Pierre GM
pgmdevlist@gmail....
Fri Jan 16 09:59:22 CST 2009
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.
More information about the Numpy-discussion
mailing list