Skip to content

Commit

Permalink
chore: autoformat with isort & black
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsopre committed Oct 25, 2023
1 parent c3b46f2 commit f7dbbcf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions koswat/cost_report/summary/koswat_summary.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
from __future__ import annotations
from dataclasses import field, dataclass

from dataclasses import dataclass, field

from koswat.cost_report.multi_location_profile import MultiLocationProfileCostReport
from koswat.dike.surroundings.point.point_surroundings import PointSurroundings
from koswat.strategies.strategy_location_matrix import StrategyLocationReinforcements


@dataclass
class KoswatSummary:
locations_profile_report_list: list[MultiLocationProfileCostReport] = field(default_factory=lambda: [])
locations_profile_report_list: list[MultiLocationProfileCostReport] = field(
default_factory=lambda: []
)
available_locations: list[PointSurroundings] = field(default_factory=lambda: [])
reinforcement_per_locations: list[StrategyLocationReinforcements] = field(default_factory=lambda: [])
reinforcement_per_locations: list[StrategyLocationReinforcements] = field(
default_factory=lambda: []
)
2 changes: 2 additions & 0 deletions koswat/cost_report/summary/koswat_summary_location_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

from typing import Type

from koswat.dike.surroundings.point.point_surroundings import PointSurroundings
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile import (
ReinforcementProfile,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging

from koswat.core.protocols.builder_protocol import BuilderProtocol
from koswat.cost_report.multi_location_profile.multi_location_profile_cost_report import (
MultiLocationProfileCostReport,
Expand Down
2 changes: 1 addition & 1 deletion koswat/strategies/order_strategy/order_stategy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from collections import defaultdict
from typing import Type

from koswat.cost_report.summary.koswat_summary_location_matrix import (
KoswatSummaryLocationMatrix,
)

from koswat.dike.surroundings.point.point_surroundings import PointSurroundings
from koswat.dike_reinforcements.reinforcement_profile.outside_slope.cofferdam_reinforcement_profile import (
CofferdamReinforcementProfile,
Expand Down
3 changes: 2 additions & 1 deletion koswat/strategies/strategy_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

from koswat.cost_report.summary import koswat_summary_location_matrix_builder


@dataclass
class StrategyInput:
locations_matrix: koswat_summary_location_matrix_builder
structure_buffer: float
min_space_between_structures: float
min_space_between_structures: float
1 change: 1 addition & 0 deletions koswat/strategies/strategy_location_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dataclasses import dataclass
from typing import Type

from koswat.dike.surroundings.point.point_surroundings import PointSurroundings
from koswat.dike_reinforcements.reinforcement_profile.reinforcement_profile_protocol import (
ReinforcementProfileProtocol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def __init__(self) -> None:
def _get_mocked_reinforcement(self) -> ReinforcementProfileProtocol:
class MockedReinforcement(StandardReinforcementProfile):
output_name: str = "Mocked reinforcement"

@property
def new_ground_level_surface(self) -> float:
return 42.0
Expand Down

0 comments on commit f7dbbcf

Please sign in to comment.