Skip to content

Commit

Permalink
Merge branch 'main' into plugin-quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Aug 8, 2023
2 parents 7da1ec9 + 0654585 commit 728a48d
Show file tree
Hide file tree
Showing 8 changed files with 303 additions and 72 deletions.
3 changes: 3 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ General methods
Model.set_results
Model.read_results

Model.read_nc
Model.write_nc

.. _setup_methods:

Setup methods
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ Added
- Support for loading the same data source but from different places (e.g. local & aws)
- Add support for reading and writing tabular data in ``parquet`` format. (PR #445)
- Add support for reading model configs in ``TOML`` format. (PR #444)
- new ``force-overwrite`` option in ``hydromt update`` CLI to force overwritting updated netcdf files. (PR #460)
- Added documentation for how to start your own plugin (#446)

Changed
-------
- possibility to ``load`` the data in the model read_ functions for netcdf files (default for read_grid in r+ mode). (PR #460)
-

Fixed
-----
- when a model component (eg maps, forcing, grid) is updated using the set_ methods, it will first be read to avoid loosing data. (PR #460)
-

Deprecated
Expand Down
4 changes: 3 additions & 1 deletion hydromt/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def build(
@opt_cli
@data_opt
@deltares_data_opt
@overwrite_opt
@cache_opt
@quiet_opt
@verbose_opt
Expand All @@ -255,6 +256,7 @@ def update(
opt,
data,
dd,
fo,
cache,
verbose,
quiet,
Expand Down Expand Up @@ -306,7 +308,7 @@ def update(
opt0 = opt.get("setup_config", {})
opt = {c: opt.get(c, {}) for c in components}
opt.update({"setup_config": opt0})
mod.update(model_out=model_out, opt=opt)
mod.update(model_out=model_out, opt=opt, forceful_overwrite=fo)
except Exception as e:
logger.exception(e) # catch and log errors
raise
Expand Down
Loading

0 comments on commit 728a48d

Please sign in to comment.