-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue #1316 msw model from imod5 data #1328
Issue #1316 msw model from imod5 data #1328
Conversation
…msw_model_from_imod5_data
…msw_model_from_imod5_data
…nd prepare for adding ScalingFactors
…msw_model_from_imod5_data
""" | ||
extra_paths = imod5_data["extra"]["paths"] | ||
path_to_parasim = find_in_file_list("para_sim.inp", extra_paths) | ||
parasim_settings = read_para_sim(path_to_parasim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if path_to_parasim
is empty? Should this be put in an if statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All iMOD5 usecases contain this file in the "EXTRA" section in the projectfile: Without it they couldn't run their MetaSWAP model with iMOD5. If the para_sim.inp is missing an error will be thrown: "could not find para_sim.inp in list of paths: ..."
Quality Gate passedIssues Measures |
bec1beb
into
issue_#1260_from_imod5_data_metaswap
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.MetaSwapModel.from_imod5_data
Imod5DataDict
TypeAlias to TypedDict, with which we can avoid a lot of type casting.MetaSwapActive
dataclass to store maskssettings
upon initialization, instead of only supporting default settings.validate
argument toMetaSwapModel.write
to turn off model validation upon writing.Checklist
Issue #nr
, e.g.Issue #737