refactor(gridutil): improve arg handling in get_disu_kwargs#2480
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2480 +/- ##
=========================================
+ Coverage 68.4% 76.1% +7.6%
=========================================
Files 294 296 +2
Lines 59390 64092 +4702
=========================================
+ Hits 40652 48788 +8136
+ Misses 18738 15304 -3434
🚀 New features to boost your workflow:
|
Member
Author
|
merging to get #2483 in |
wpbonelli
added a commit
that referenced
this pull request
Apr 1, 2025
Following up on #2475. Fixes #2473. #2480 was extracted from this changeset for tidiness. Up to now the reversal methods have worked for our backwards particle tracking examples, which have very simple time discretizations. But they didn't work in the general case — only for "symmetric" tdis with no time step multiplier. Fix several issues with binary output file reversal. Clean up and expand tests to include dis/disv/disu with both trivial and a couple non-trivial time discretizations. Make a small (but consequential) fix for #2481: when reversing we need to take the reciprocal of tsmult. Fix an issue with the ModelTime class perioddata property and add a pertim property like the totim property.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Use the same pattern from
get_disv_kwargsto check/expand arguments inget_disu_kwargs. Also update the logic so any 1D array-like of shape(nlay,)can be used to specify constant top/bottom elevations per layer, where previously only a list was accepted.