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
I would be interested in an additional function in the util.py file or maybe it can be an extension of write_and_run_model. From the OC-package we know whether head and budget are stored. The function would read and store the outputs of the model in model_ds.
Additionally, I would like to see a option in the write_and_run_model function to run the model in a temporary directory. Thus within
a with statement.
with tempfile.TemporaryDirectory() as tmpdirname:
# alter model_ws to tmpdirname
# write packages
# run model
# read and store outputs in model_ds using info from the OC-package
# revert model_ws
The text was updated successfully, but these errors were encountered:
The method get_heads_dataarray provides a heads DataArray, which can be stored in the model_ds. Also we can use the new output accessor in flopy: hobj = gwf.output.heads().
As for a temporary directory, I agree that would be a useful feature. We could add that to the write_and_run_model method I think? Shouldn't be very complicated as the flopy Simulation object has a method to change the working directory.
I would be interested in an additional function in the util.py file or maybe it can be an extension of
write_and_run_model
. From the OC-package we know whether head and budget are stored. The function would read and store the outputs of the model inmodel_ds
.Additionally, I would like to see a option in the
write_and_run_model
function to run the model in a temporary directory. Thus withina with statement.
The text was updated successfully, but these errors were encountered: