Closed minrk closed 7 months ago
I guess numpy.testing.assert_almost_equal
with default decimal=7 is stricter than
https://numpy.org/doc/stable/reference/generated/numpy.allclose.html
i.e.
assert_almost_equal
abs(desired-actual) < float64(1.5 * 10(-decimal)) allclose* absolute(a - b) <= (atol + rtol absolute(b)) Maybe we need to add decimal=6 to the rectangular test?
Probably overzealous, maybe should just do the all close comparisons, not almost_equal
yields better error messages when tests fail
especially for
nt.assert_allclose
, where you get e.g.:rather than the same assertion with
assert np.allclose
: