-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
cumulative_integrate() method #5153
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
Provides the functionality of scipy.integrate.cumulative_trapezoid.
There's a |
I did a quick check and it seems like applying BTW the test failures are in |
Now most of xr-scipy functionalities are already implemented in xarray and also I couldn't take time to maintain this package. I think basic functionalities would be better to be integrated into xarray itself and cumulative_trapezoid would be a good candidate, as The implementation looks good to me. |
If we had a (but given we don't yet, no need to delay this) |
Great — shall we merge? |
This is definitely welcome functionality! My only question is whether it should be a flag in the existing I would lean towards a new method because the function signature is different (not removing a dimension). |
Since the dimensions of the returned arrays are different for cumulative and total integrals, makes more sense for them to be separate methods.
The vote seems to be for a separate |
Thanks a lot @johnomotani ! |
Provides the functionality of
scipy.integrate.cumulative_trapezoid
.pre-commit run --all-files
whats-new.rst