Skip to content
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

Refactor obs setup #69

Merged
merged 3 commits into from
Jul 5, 2023
Merged

Refactor obs setup #69

merged 3 commits into from
Jul 5, 2023

Conversation

aleaf
Copy link
Collaborator

@aleaf aleaf commented Jul 5, 2023

Refactor setup_head_observations to include inputs in signature and to more as a stand-alone function. Support regular Flopy StructuredGrids with rasterize() method. Support inner and outer CSV file output in IMS package.

* refactor setup_head_observations to include inputs in signature (instead of buried in cfg dict attached to model object) and be closer to a stand-alone function.
* added allow_obs_in_bc_cells option to allow observations in boundary condition cells (previously not allowed).
* put modflow-setup specific options in mfsetup_options: block, consistent with other packages
* TODO: setup_head_observations could probably be further refactored for consistency with other input by utilizing the TabularSourceData class
…ansform object from a flopy structured grid; this allows the rasterize() method to work with standard flopy StructuredGrid instances
… in IMS options (remap input to work with Flopy)
@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2023

Codecov Report

Merging #69 (4ab2aaf) into develop (88e3569) will increase coverage by 0.00%.
The diff coverage is 97.01%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff            @@
##           develop      #69   +/-   ##
========================================
  Coverage    89.09%   89.10%           
========================================
  Files           64       64           
  Lines        12255    12271   +16     
========================================
+ Hits         10919    10934   +15     
- Misses        1336     1337    +1     
Impacted Files Coverage Δ
mfsetup/grid.py 86.94% <88.88%> (-0.02%) ⬇️
mfsetup/obs.py 91.66% <96.55%> (-0.31%) ⬇️
mfsetup/mf6model.py 97.60% <100.00%> (+0.03%) ⬆️
mfsetup/mfnwtmodel.py 92.25% <100.00%> (+0.05%) ⬆️
mfsetup/tests/test_mf6_shellmound.py 93.62% <100.00%> (+0.04%) ⬆️
mfsetup/tests/test_pfl_mfnwt_inset.py 97.18% <100.00%> (ø)
mfsetup/tests/test_pleasant_mf6_inset.py 86.30% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@aleaf aleaf merged commit 14fea2b into DOI-USGS:develop Jul 5, 2023
@aleaf aleaf deleted the refactor_obs_setup branch July 5, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants