-
Notifications
You must be signed in to change notification settings - Fork 483
Closed
Milestone
Description
It seems pint > 0.10
loses support for numpy.allclose
. Running
from pint import Unit
import numpy as np
x = np.array([1, 2, 3]) * Unit("kelvin")
np.allclose(x, x)
yields
TypeError: no implementation found for 'numpy.allclose' on types that implement __array_function__: [<class 'pint.quantity.build_quantity_class.<locals>.Quantity'>]
I'm guessing this was just missed by #905? Happy to submit a PR / test if this is the case.
Metadata
Metadata
Assignees
Labels
No labels