Skip to content

Commit

Permalink
Don't write use_validation to TOML
Browse files Browse the repository at this point in the history
Fixes #1862.

This adds the default to a test model to ensure it doesn't end up that and hence make the model not runnable in CI.
  • Loading branch information
visr committed Oct 3, 2024
1 parent f6b8321 commit 344643c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Model(FileModel):
user_demand: UserDemand = Field(default_factory=UserDemand)

edge: EdgeTable = Field(default_factory=EdgeTable)
use_validation: bool = Field(default=True)
use_validation: bool = Field(default=True, exclude=True)

_used_node_ids: UsedIDs = PrivateAttr(default_factory=UsedIDs)

Expand Down
1 change: 1 addition & 0 deletions python/ribasim_testmodels/ribasim_testmodels/trivial.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def trivial_model() -> Model:
endtime="2021-01-01",
crs="EPSG:28992",
results=Results(subgrid=True, compression=False),
use_validation=True,
)

# Convert steady forcing to m/s
Expand Down

0 comments on commit 344643c

Please sign in to comment.