Skip to content

Commit

Permalink
fix interception settings in new schema version bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvaningen committed Oct 23, 2024
1 parent da6332a commit cb47e0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog of threedigrid-builder
1.20.1 (unreleased)
-------------------

- Nothing changed yet.
- Fix interception file settings not being read properly in new schema version.


1.20.0 (2024-10-14)
Expand Down
15 changes: 8 additions & 7 deletions threedigrid_builder/interface/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,14 @@ def get_settings(self) -> dict:
"friction_coefficient",
default=AVERAGE if model_settings["friction_averaging"] else NO_AGG,
)
_set_initialization_type(
interception,
"interception",
file_field="interception_file",
type_field="interception_type",
default=NO_AGG,
)
if interception:
_set_initialization_type(
interception,
"interception",
file_field="interception_file",
type_field="interception_type",
default=NO_AGG,
)
if interflow:
_set_initialization_type(interflow, "porosity", default=NO_AGG)
_set_initialization_type(
Expand Down

0 comments on commit cb47e0c

Please sign in to comment.