Skip to content

Commit

Permalink
641: Set default value to None for optional waves section.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-vd-aardweg committed Jul 5, 2024
1 parent 155eac1 commit 8a33f45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion hydrolib/core/dflowfm/research/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ class ResearchFMModel(FMModel):
physics: ResearchPhysics = Field(default_factory=ResearchPhysics)
sediment: ResearchSediment = Field(default_factory=ResearchSediment)
wind: ResearchWind = Field(default_factory=ResearchWind)
waves: Optional[ResearchWaves] = Field(default_factory=ResearchWaves)
waves: Optional[ResearchWaves] = Field(None)
time: ResearchTime = Field(default_factory=ResearchTime)
restart: ResearchRestart = Field(default_factory=ResearchRestart)
trachytopes: ResearchTrachytopes = Field(default_factory=ResearchTrachytopes)
Expand Down
2 changes: 0 additions & 2 deletions tests/dflowfm/test_research.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ResearchSedtrails,
ResearchTime,
ResearchTrachytopes,
ResearchWaves,
ResearchWind,
)
from tests.utils import test_input_dir
Expand All @@ -29,7 +28,6 @@ def test_create_research_fmmodel(self):
assert isinstance(model.physics, ResearchPhysics)
assert isinstance(model.sediment, ResearchSediment)
assert isinstance(model.wind, ResearchWind)
assert isinstance(model.waves, ResearchWaves)
assert isinstance(model.time, ResearchTime)
assert isinstance(model.trachytopes, ResearchTrachytopes)
assert isinstance(model.output, ResearchOutput)
Expand Down

0 comments on commit 8a33f45

Please sign in to comment.