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
ERROR: Model dir already exists and cannot be overwritten
Current behaviour
When updating a model in an already existing folder, the models cannot be overwritten even with the --force-overwrite option on.
Desired behaviour
Like we implemented for build, I think if the user specifies --fo / --force-overwrite in update, hydromt should be able to overwrite the existing model.
Additional context
Doing a check below if force_overwrite then set root with mode="w+" and else keep mode="w"
HydroMT version checks
Reproducible Example
hydromt update wflow wflow_piave -o wflow_piave_update -i update.ini -d artifact_data -vv
hydromt update wflow wflow_piave -o wflow_piave_update -i update.ini -d artifact_data --fo -vv
Current behaviour
When updating a model in an already existing folder, the models cannot be overwritten even with the --force-overwrite option on.
Desired behaviour
Like we implemented for build, I think if the user specifies --fo / --force-overwrite in update, hydromt should be able to overwrite the existing model.
Additional context
Doing a check below if force_overwrite then set root with mode="w+" and else keep mode="w"
hydromt/hydromt/models/model_api.py
Lines 292 to 299 in 7438afd
The text was updated successfully, but these errors were encountered: