allclose

astropy.units.quantity.allclose(a, b, rtol=1e-05, atol=None, **kwargs)[source] [edit on github]

Notes

Returns True if two arrays are element-wise equal within a tolerance.

This is a Quantity-aware version of numpy.allclose().