-
Notifications
You must be signed in to change notification settings - Fork 11
Issue #1787 mask topsystem packages #1918
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
JoerivanEngelen
wants to merge
29
commits into
master
Choose a base branch
from
issue_#1787_mask_topsystem_packages
base: master
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
29 commits
Select commit
Hold shift + click to select a range
c3558b7
Add mask_packages method
JoerivanEngelen 1c8ffb0
Add mask_topsystem_packages utility function
JoerivanEngelen be94e0f
Provide proper mask and fix mypy issues
JoerivanEngelen 69bd29c
Add test
JoerivanEngelen d0970c3
Fix docstring
JoerivanEngelen c8cbc5f
Move mask topsystem function to separate utility and add ITopSystemBo…
JoerivanEngelen 29204bd
Remove method
JoerivanEngelen a4ba60d
Also clip topsystems for clip_box when states_for_boundary are provided
JoerivanEngelen 433cd10
Add test for masking the topsystem
JoerivanEngelen 32e6772
Return None in type annotation
JoerivanEngelen b3a59fc
Use mask_packages method
JoerivanEngelen 698f36e
Regrid iMOD5 IBOUND data when regridding cap data and also mask where…
JoerivanEngelen 03aabc0
Also drop bnd layer
JoerivanEngelen 3171d54
Call correct var an improve varname
JoerivanEngelen ac10b19
Add docstring
JoerivanEngelen 65cd181
Add ibound to test fixture and expand tests to test for cell inactivity
JoerivanEngelen 9441fd4
Update changelog
JoerivanEngelen e6e7a03
Rename to avoid duplicate test module names
JoerivanEngelen fb1b855
Also rename msw mask util test module
JoerivanEngelen 52b6ea4
Fix and expand mf6 mask tests
JoerivanEngelen fc7d39d
Update mock setup
JoerivanEngelen 4e06044
format
JoerivanEngelen cb51c40
Add ibound to regrid schemes where it was missing and slightly improv…
JoerivanEngelen 4776d41
Include bnd ibound data in test fixtures where missing.
JoerivanEngelen 65ec47d
Include ignore_time_purge_empty in mask_topsystem calls. Fix creation…
JoerivanEngelen 50f71e5
Refactor: Move boundary condition creator utiltity functions from mod…
JoerivanEngelen d8b191a
Update mocking framework
JoerivanEngelen 0f41608
Update missing args
JoerivanEngelen 497f94a
Drop time coord and add docstring
JoerivanEngelen 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| from abc import abstractmethod | ||
|
|
||
| from imod.common.interfaces.ipackage import IPackage | ||
| from imod.typing import GridDataDict, GridDataset | ||
|
|
||
|
|
||
| class ITopSystemBoundaryCondition(IPackage): | ||
| """ | ||
| Interface for top system boundary condition packages in MODFLOW 6. | ||
| """ | ||
|
|
||
| @classmethod | ||
| @abstractmethod | ||
| def aggregate_layers(cls, dataset: GridDataset) -> GridDataDict: | ||
| raise NotImplementedError |
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
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.
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.