Skip to content

Commit

Permalink
test: corrected koswat scenario nans
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsopre committed Oct 18, 2023
1 parent 0fdeda3 commit cd30d57
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/calculations/test_reinforcement_profile_builder_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def _to_koswat_scenario(
d_h=_section_scenario.d_h,
d_s=_section_scenario.d_s,
d_p=_section_scenario.d_p,
scenario_section = scenario_data.scenario_dike_section,
scenario_name = _section_scenario.scenario_name,
kruin_breedte = _section_scenario.kruin_breedte,
buiten_talud = _section_scenario.buiten_talud,
scenario_section=scenario_data.scenario_dike_section,
scenario_name=_section_scenario.scenario_name,
kruin_breedte=_section_scenario.kruin_breedte,
buiten_talud=_section_scenario.buiten_talud,
)
yield _scenario

Expand Down Expand Up @@ -255,6 +255,15 @@ def reinforcement_profile_case(
)
).build()

if math.isnan(_combination.koswat_scenario_case.kruin_breedte):
_combination.koswat_scenario_case.kruin_breedte = (
_combination.input_profile_case.kruin_breedte
)
if math.isnan(_combination.koswat_scenario_case.buiten_talud):
_combination.koswat_scenario_case.buiten_talud = (
_combination.input_profile_case.buiten_talud
)

def _get_reinforced_profile() -> ReinforcementProfileProtocol:
_reinforcement = _combination.reinforcement_profile_type()
# Input profile data.
Expand Down

0 comments on commit cd30d57

Please sign in to comment.