Skip to content

Commit

Permalink
Merge pull request #99 from Deltares/feature/96-refactor-improve-dist…
Browse files Browse the repository at this point in the history
…inction-between-reinforcementinputprofile-and-reinforcementprofile

Feature/96 refactor improve distinction between reinforcementinputprofile and reinforcementprofile
  • Loading branch information
Carsopre authored Oct 24, 2023
2 parents 3fcca28 + d7063c9 commit c8cce65
Show file tree
Hide file tree
Showing 108 changed files with 755 additions and 677 deletions.
6 changes: 0 additions & 6 deletions docs/reference/koswat_docstrings/calculations/protocols.md

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Reinforcement Layers Wrapper

::: koswat.dike_reinforcements.reinforcement_layers.reinforcement_layer_protocol
::: koswat.dike_reinforcements.reinforcement_layers.reinforcement_base_layer
::: koswat.dike_reinforcements.reinforcement_layers.reinforcement_coating_layer
::: koswat.dike_reinforcements.reinforcement_layers.reinforcement_layers_wrapper

::: koswat.dike_reinforcements.reinforcement_layers.outside_slope_reinforcement_layers_wrapper_builder
::: koswat.dike_reinforcements.reinforcement_layers.standard_reinforcement_layers_wrapper_builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Reinforcement profile

::: koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_builder_base
::: koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_builder_factory
::: koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_builder_protocol
::: koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol
::: koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile

## Outside slope

::: koswat.dike_reinforcements.reinforcement_profile.outside_slope.cofferdam_reinforcement_profile
::: koswat.dike_reinforcements.reinforcement_profile.outside_slope.outside_slope_reinforcement_profile_builder
::: koswat.dike_reinforcements.reinforcement_profile.outside_slope.outside_slope_reinforcement_profile


## Standard

::: koswat.dike_reinforcements.reinforcement_profile.standard.piping_wall_reinforcement_profile
::: koswat.dike_reinforcements.reinforcement_profile.standard.soil_reinforcement_profile
::: koswat.dike_reinforcements.reinforcement_profile.standard.stability_wall_reinforcement_profile
::: koswat.dike_reinforcements.reinforcement_profile.standard.standard_reinforcement_profile
::: koswat.dike_reinforcements.reinforcement_profile.standard.standard_reinforcement_profile_builder
2 changes: 1 addition & 1 deletion docs/user_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ from koswat.configuration.settings.koswat_run_scenario_settings import (
from koswat.cost_report.io.plots.multi_location_profile_comparison_plot_exporter import (
MultiLocationProfileComparisonPlotExporter,
)
from koswat.calculations import ReinforcementProfileBuilderFactory
from koswat.dike_reinforcements import ReinforcementProfileBuilderFactory

# 1. Define input data.
_input_dir = Path("C:\\my_koswat_input_dir")
Expand Down
6 changes: 0 additions & 6 deletions koswat/calculations/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions koswat/calculations/outside_slope_reinforcement/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions koswat/calculations/protocols/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions koswat/calculations/protocols/__init__.py

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions koswat/calculations/standard_reinforcement/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions koswat/calculations/standard_reinforcement/soil/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from pathlib import Path

from koswat.calculations.io.reinforced_profile_comparison_plot_exporter import (
from koswat.dike_reinforcements.io.reinforced_profile_comparison_plot_exporter import (
ReinforcedProfileComparisonPlotExporter,
)
from koswat.calculations.io.reinforced_profile_plot_exporter import (
from koswat.dike_reinforcements.io.reinforced_profile_plot_exporter import (
ReinforcedProfilePlotExporter,
)
from koswat.cost_report.multi_location_profile.multi_location_profile_cost_report import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from koswat.calculations.protocols import ReinforcementProfileProtocol
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
)
from koswat.configuration.settings.costs.koswat_costs import KoswatCostsSettings
from koswat.core.protocols import BuilderProtocol
from koswat.cost_report.multi_location_profile.multi_location_profile_cost_report import (
Expand Down
2 changes: 1 addition & 1 deletion koswat/cost_report/profile/layer_cost_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import math

from koswat.calculations.reinforcement_layers.reinforcement_layer_protocol import (
from koswat.dike_reinforcements.reinforcement_layers.reinforcement_layer_protocol import (
ReinforcementLayerProtocol,
)
from koswat.cost_report.cost_report_protocol import CostReportProtocol
Expand Down
4 changes: 3 additions & 1 deletion koswat/cost_report/profile/profile_cost_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import math
from typing import List

from koswat.calculations.protocols import ReinforcementProfileProtocol
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
)
from koswat.cost_report.cost_report_protocol import CostReportProtocol
from koswat.cost_report.profile.layer_cost_report import LayerCostReport
from koswat.cost_report.profile.volume_cost_parameters import VolumeCostParameters
Expand Down
4 changes: 3 additions & 1 deletion koswat/cost_report/profile/profile_cost_report_builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import List

from koswat.calculations.protocols import ReinforcementProfileProtocol
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
)
from koswat.configuration.settings.costs.koswat_costs import KoswatCostsSettings
from koswat.core.protocols import BuilderProtocol
from koswat.cost_report.profile.layer_cost_report import LayerCostReport
Expand Down
4 changes: 3 additions & 1 deletion koswat/cost_report/profile/volume_cost_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import math
from typing import List, Tuple

from koswat.calculations.protocols import ReinforcementProfileProtocol
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
)
from koswat.cost_report.profile.volume_cost_parameters_calculator import (
VolumeCostParametersCalculator,
)
Expand Down
4 changes: 3 additions & 1 deletion koswat/cost_report/profile/volume_cost_parameters_builder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import logging
from typing import Union

from koswat.calculations.protocols import ReinforcementProfileProtocol
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
)
from koswat.configuration.settings.costs.dike_profile_costs_settings import (
DikeProfileCostsSettings,
)
Expand Down
Loading

0 comments on commit c8cce65

Please sign in to comment.