-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from Deltares/test/81-definition-of-testcases
Test/81 definition of testcases
- Loading branch information
Showing
87 changed files
with
83,057 additions
and
451 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
koswat/calculations/outside_slope_reinforcement/cofferdam/cofferdam_input_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
import math | ||
|
||
from koswat.calculations.protocols import ReinforcementProfileProtocol | ||
from koswat.dike.profile.koswat_input_profile_base import KoswatInputProfileBase | ||
|
||
|
||
@dataclass | ||
class CofferDamInputProfile(KoswatInputProfileBase, ReinforcementProfileProtocol): | ||
length_coffer_dam: float | ||
length_coffer_dam: float = math.nan |
5 changes: 4 additions & 1 deletion
5
koswat/calculations/standard_reinforcement/piping_wall/piping_wall_input_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
import math | ||
|
||
from koswat.calculations.protocols import ReinforcementInputProfileProtocol | ||
from koswat.dike.profile.koswat_input_profile_base import KoswatInputProfileBase | ||
|
||
|
||
@dataclass | ||
class PipingWallInputProfile(KoswatInputProfileBase, ReinforcementInputProfileProtocol): | ||
length_piping_wall: float | ||
length_piping_wall: float = math.nan |
3 changes: 2 additions & 1 deletion
3
koswat/calculations/standard_reinforcement/soil/soil_input_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from dataclasses import dataclass | ||
from koswat.calculations.protocols import ReinforcementInputProfileProtocol | ||
from koswat.dike.profile.koswat_input_profile_base import KoswatInputProfileBase | ||
|
||
|
||
@dataclass | ||
class SoilInputProfile(KoswatInputProfileBase, ReinforcementInputProfileProtocol): | ||
pass |
5 changes: 4 additions & 1 deletion
5
koswat/calculations/standard_reinforcement/stability_wall/stability_wall_input_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
import math | ||
|
||
from koswat.calculations.protocols import ReinforcementProfileProtocol | ||
from koswat.dike.profile.koswat_input_profile_base import KoswatInputProfileBase | ||
|
||
|
||
@dataclass | ||
class StabilityWallInputProfile(KoswatInputProfileBase, ReinforcementProfileProtocol): | ||
length_stability_wall: float | ||
length_stability_wall: float = math.nan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
from __future__ import annotations | ||
from dataclasses import dataclass | ||
import math | ||
|
||
from koswat.dike.koswat_input_profile_protocol import KoswatInputProfileProtocol | ||
|
||
|
||
@dataclass | ||
class KoswatInputProfileBase(KoswatInputProfileProtocol): | ||
dike_section: str | ||
buiten_maaiveld: float | ||
buiten_talud: float | ||
buiten_berm_hoogte: float | ||
buiten_berm_breedte: float | ||
kruin_hoogte: float | ||
kruin_breedte: float | ||
binnen_talud: float | ||
binnen_berm_hoogte: float | ||
binnen_berm_breedte: float | ||
binnen_maaiveld: float | ||
dike_section: str = "" | ||
buiten_maaiveld: float = math.nan | ||
buiten_talud: float = math.nan | ||
buiten_berm_hoogte: float = math.nan | ||
buiten_berm_breedte: float = math.nan | ||
kruin_hoogte: float = math.nan | ||
kruin_breedte: float = math.nan | ||
binnen_talud: float = math.nan | ||
binnen_berm_hoogte: float = math.nan | ||
binnen_berm_breedte: float = math.nan | ||
binnen_maaiveld: float = math.nan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
29 changes: 29 additions & 0 deletions
29
tests/acceptance_scenarios/acceptance_test_scenario_cases.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from tests.acceptance_scenarios.acceptance_test_scenario_dataclasses import ( | ||
AcceptanceTestScenarioCombinations, | ||
) | ||
from tests.acceptance_scenarios.koswat_input_profile_base_cases import ( | ||
AcceptanceTestInputProfileCases, | ||
) | ||
from tests.acceptance_scenarios.koswat_scenario_test_cases import ( | ||
ScenarioCasesAB, | ||
ScenarioCasesC, | ||
) | ||
from tests.acceptance_scenarios.layers_cases import LayersCases | ||
|
||
acceptance_test_combinations = [ | ||
AcceptanceTestScenarioCombinations( | ||
profile_case=AcceptanceTestInputProfileCases.profile_dijk1, | ||
layers_cases=[LayersCases.with_acceptance_criteria], | ||
scenario_cases=ScenarioCasesAB.cases, | ||
), | ||
AcceptanceTestScenarioCombinations( | ||
profile_case=AcceptanceTestInputProfileCases.profile_dijk2, | ||
layers_cases=[LayersCases.with_acceptance_criteria], | ||
scenario_cases=ScenarioCasesAB.cases, | ||
), | ||
AcceptanceTestScenarioCombinations( | ||
profile_case=AcceptanceTestInputProfileCases.profile_dijk3, | ||
layers_cases=[LayersCases.with_acceptance_criteria], | ||
scenario_cases=ScenarioCasesC.cases, | ||
), | ||
] |
Oops, something went wrong.