You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoerivanEngelen
changed the title
Read para_sim.inp, adapt with iMOD5 settings and write. Do not hardcode settings in MetaSwapModel, make these editable instead.
Add imod.msw.MetaSwapModel.from_imod5_dataDec 2, 2024
Fixes#1316
# Description
Adds ``MetaSwapModel.from_imod5_data``, currently only models can be
written by turning off validation, that is still something to pick up.
- Adds ``MetaSwapModel.from_imod5_data``
- Converts ``Imod5DataDict`` TypeAlias to TypedDict, with which we can
avoid a lot of type casting.
- Add masking and broadcasting utilities for MetaSWAP iMOD5 data. I
could not easily make calls to the MODFLOW6 utilities for masking, as
these assumed presence of a layer coordinate and had logic to deal with
that, which is irrelevant for MetaSWAP.
- Adds ``MetaSwapActive`` dataclass to store masks
- Allow user-defined ``settings`` upon initialization, instead of only
supporting default settings.
- Add ``validate`` argument to ``MetaSwapModel.write`` to turn off model
validation upon writing.
# Checklist
- [x] Links to correct issue
- [x] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
Requirements
para_sim.inp
and set as simulation settingsThe text was updated successfully, but these errors were encountered: