🍾 Xarray is now 10 years old! πŸŽ‰

xarray.testing.assert_allclose

xarray.testing.assert_allclose#

xarray.testing.assert_allclose(a, b, rtol=1e-05, atol=1e-08, decode_bytes=True)[source]#

Like numpy.testing.assert_allclose(), but for xarray objects.

Raises an AssertionError if two objects are not equal up to desired tolerance.

Parameters: