pint_xarray.testing.assert_units_equal
- pint_xarray.testing.assert_units_equal(a, b)
assert that the units of two xarray objects are equal
Raises an
AssertionError
if the units of both objects are not equal.units
attributes and attached unit objects are compared separately.