skbio.util.xp_assert_close#

skbio.util.xp_assert_close(actual, desired, rtol=1e-07, atol=0)[source]#

Assert two arrays are element-wise equal within a tolerance.

Converts both arrays to NumPy (handles GPU arrays), then delegates to numpy.testing.assert_allclose.