-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
MAINT: Move trapezoid implementation to SciPy
#19100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@mtsokol we already have a |
@andyfaff To explain, def trapezoid(y, x=None, dx=1.0, axis=-1):
"""..."""
return np.trapz(y, x=x, dx=dx, axis=axis)So it's only a wrapper for NumPy's function. This PR moves NumPy's implementation to Scipy, as we decided that |
rgommers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I think the cirrus ci fail is because hypothesis has only just been added to the ci config. A rebase on main would probably fix this, but I think it's mergeable as-is. |
Hi @rgommers,
One of the functions that will be deprecated and removed in numPy 2.0 is
np.trapz. It's the only integration function that still lives in NumPy instead of SciPy'sscipy.integrate. In this PR I move implementation and tests directly to SciPy to then remove the original one from NumPy.