You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using numpy==2.0.0, I have noticed the deprecation warning in DiscreteField.array_wrap. In their documentation, they now enforce that the signature of array_wrap to be __array_wrap__(self, arr, context=None, return_scalar=False). Therefore I propose we change:
classDiscreteField(ndarray):
...
def__array_wrap__(self, out_arr, context=None):
# invalidate attributes after ufuncsreturnnp.array(out_arr)
While using numpy==2.0.0, I have noticed the deprecation warning in DiscreteField.array_wrap. In their documentation, they now enforce that the signature of array_wrap to be
__array_wrap__(self, arr, context=None, return_scalar=False)
. Therefore I propose we change:to:
The text was updated successfully, but these errors were encountered: