-
Notifications
You must be signed in to change notification settings - Fork 430
ENH: Add cumulative integration function. #3508
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
Open
DWesl
wants to merge
31
commits into
Unidata:main
Choose a base branch
from
DWesl:mpcalc-integrate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4151d1c
ENH: Add cumulative integration function.
DWesl 115415d
STY: Ensure two blank lines between test functions.
DWesl 9ca6384
BUG,STY: Fix NameError in test
DWesl 9d9dd0d
TST: Expand cumulative_integrate tests.
DWesl 8ab2549
STY: Change double quotes to single.
DWesl 6c1f2a7
BUG: Fix cumulative_integrate axis handling.
DWesl 27f9fc5
TST,BUG: Fix 2D XArray test for cumulative_integral
DWesl 08ed4ea
BUG: Fix syntax error in units check
DWesl 6ae4f66
STY: wrap lines and fix tests.
DWesl f5bf47b
TST: Fix test mismatches.
DWesl c996909
STY: Sort import ordering.
DWesl cf5951d
DOC: Add cumulative_integrate to metpy.calc Mathematical Funtions list.
DWesl 4af2eb1
ENH: Switch to using scipy.integrate.cumulative_trapezoid for calcula…
DWesl 5eb45cc
FIX: Pass magnitudes to unit-unaware functions.
DWesl 609c44a
TST: Fix unit handling.
DWesl 3b6ac91
TST: Fix unit tests.
DWesl c15f4bb
TST,FIX: Fix units in test, the right way this time.
DWesl 480d5d1
BUG: Add back-up for unitless arguments.
DWesl c7e721e
Stop trying to handle unitless NumPy arrays.
DWesl 25f6bf1
STY: Drop assignment to unused variable
DWesl 2388547
TST,BUG: Fix pytest.raises decorator
DWesl 0935278
TST,BUG: Fix type of error in test.
DWesl 1b5d30b
BUG: Fix exception type to match test.
DWesl a5d95e4
DOC: Fix example for cumulative_integrate.
DWesl 40a7386
DOC,FIX: Fix example output formatting.
DWesl a9de575
DOC,FIX: Import XArray for that example.
DWesl 4d0379b
DOC,FIX: Fix call to cumulative_integrate.
DWesl b51682b
Use units for delta, not x, for finding final units.
DWesl 9b82a80
DOC: Remove example with results differing by OS.
DWesl 5a663e1
STY: Fix ruff errors.
DWesl 5d72db3
STY: Fix flake8 errors.
DWesl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.