Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feat: create modelgrid without flopy; allow loading from .dis.grb #39

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

mwtoews
Copy link
Owner

@mwtoews mwtoews commented Aug 22, 2024

This PR does a few things:

  • Adds a light-weight gridit.modflow.ModelGrid dataclass, which has a .to_grid() method to create a Grid instance; this class does not need flopy, unless using from_modflow or from_modelgrid classmethods.
  • Allows reading MODFLOW 6 binary grid files (.dis.grb) with Grid.from_modflow() or ModelGrid.from_modflow()
  • Deprecate get_modflow_model() with objects, as this method should read from PathLike or str to a MODFLOW model.
  • Fix basic errors with the example MODFLOW 6 simulation

@mwtoews mwtoews added the enhancement New feature or request label Aug 22, 2024
@mwtoews mwtoews merged commit 62c5bd7 into main Aug 22, 2024
4 checks passed
@mwtoews mwtoews deleted the modflow-grid-improve branch August 22, 2024 03:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant