Repository navigation
Conversation
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.7.2 to 4.7.6. - [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases) - [Commits](JamesIves/github-pages-deploy-action@v4.7.2...v4.7.6) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-version: 4.7.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.7.6 to 4.8.0. - [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases) - [Commits](JamesIves/github-pages-deploy-action@v4.7.6...v4.8.0) --- updated-dependencies: - dependency-name: JamesIves/github-pages-deploy-action dependency-version: 4.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* re-adjust SFR package layering each time idomain is adjusted, to prevent SFR in inactive cells (SFR reaches with no groundwater connections) * write SFR Package shapefiles when MODFLOW input is written, so that the shapefiles reflect the final state of the SFR package * fix some lingering pandas delim_whitespace=True args
* add --no-deps to pip reinstall of flopy from latest release; apparently this was clobbering the conda installs of pandas and other packages on the Windows CI runs
…SourceData.from_config with individual raster input for recharge.
…>.gpkg|layername=<layer name> or filename>.gpkg|layer=<layer name>), for example as a way to specify the active model extent (e.g. in the source_data: idomain: block for Modflow 6 models)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v6...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…pi.types.is_string_dtype()
…pi.types.is_string_dtype() and other misc fixes
…with --no-deps to prevent reinstall of pandas < 3
Bumps [mamba-org/setup-micromamba](https://github.com/mamba-org/setup-micromamba) from 1 to 3. - [Release notes](https://github.com/mamba-org/setup-micromamba/releases) - [Commits](mamba-org/setup-micromamba@v1...v3) --- updated-dependencies: - dependency-name: mamba-org/setup-micromamba dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…terpolation if idomain >1 or ibound !=0
…e interpolation source points
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #148 +/- ##
===========================================
+ Coverage 89.48% 89.59% +0.11%
===========================================
Files 67 66 -1
Lines 13200 13332 +132
===========================================
+ Hits 11812 11945 +133
+ Misses 1388 1387 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
|
thanks @ntdosch! I folded this in using the command line. |
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.
Summary
Fixes #139.
Tmr._source_grid_maskpreviously selected interpolation source points using only the spatial window around the inset boundary. It did not account for the parent model's active-cell array, so inactive parent cells were passed to the 3D interpolator as if they held valid heads. Those cells carry inactive values (HNOFLO/HDRY in MODFLOW-NWT, or1e30/-1e30for inactive/dry cells in MODFLOW 6), which get included in the interpolated perimeter boundary heads at nearby inset cells.This PR intersects the spatial mask with the parent's idomain/ibound so that only active parent cells are used as interpolation source points.
Changes
mfsetup/tmr.py_source_maskconstruction, the 3D spatial mask is now combined with the parent's active-cell array:idomain > 0(excludesidomain == 0inactive andidomain == -1pass-through cells, neither of which has valid heads).ibound != 0(excludes inactive cells while retaining constant-head cells,ibound == -1, which do hold valid heads).+2vertical padding ofmask3d.Noneor not a 3D array (i.e., all cells active), so models without an explicit active-cell array are unaffected.Tests
mfsetup/tests/test_tmr.py:parent_model_mf6_with_inactiveandparent_model_nwt_with_inactivethat build and run parent models with a small inactive cell cluster placed just outside the inset footprint but inside the source-mask buffer, so those cells would be included in interpolation if not masked.test_source_grid_mask_excludes_inactive_mf6: asserts everyidomain == 0cell is excluded from_source_grid_mask, and that the resulting interpolated boundary heads contain no NaNs or unreasonably low (inactive-like) values.test_source_grid_mask_excludes_inactive_nwt: assertsibound == 0cells are excluded while a constant-head cell (ibound == -1) inside the spatial window is retained, and that interpolated heads remain physically reasonable.