astropy_xarray.testing.assert_units_equal¶
- astropy_xarray.testing.assert_units_equal(a, b)¶
assert that the units of two xarray objects are equal
Raises an
AssertionErrorif the units of both objects are not equal.unitsattributes and attached unit objects are compared separately.