pint icon indicating copy to clipboard operation
pint copied to clipboard

pint.testing.assert_allclose with Measurement

Open LaurentBergeron opened this issue 1 year ago • 0 comments

The pint.testing.assert_allclose function fails with the Measurement class

import pint
from pint.testing import assert_allclose

x = pint.Quantity(1, "m").plus_minus(0.1)
y = pint.Quantity(1, "m").plus_minus(0.1)

assert_allclose(x, y)

Would it be possible to include Measurement in this comparison?

LaurentBergeron avatar Sep 01 '23 13:09 LaurentBergeron