Skip to content

Commit

Permalink
Code clean-up DGEOSUITE-482
Browse files Browse the repository at this point in the history
  • Loading branch information
wfaustmann committed Dec 3, 2024
1 parent 66587df commit 8dbc5b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions geolib/models/dsheetpiling/calculation_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
from geolib.models import BaseDataClass

from .settings import (
AssessmentTypeEC7NL,
CalculationType,
DesignType,
PartialFactorCalculationType,
PartialFactorSetCUR,
PartialFactorSetEC,
PartialFactorSetEC7NADBE,
RiskClassEC7BE,
PartialFactorSetEC7NADNL,
AssessmentTypeEC7NL,
PartialFactorSetVerifyEC,
RiskClassEC7BE,
VerifyType,
)

Expand Down
11 changes: 6 additions & 5 deletions geolib/models/dsheetpiling/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
PartialFactorsEurocodeDa3,
)
from .settings import (
AssessmentTypeEC7NL,
CalculationType,
CurveSettings,
DesignType,
Expand All @@ -73,11 +74,10 @@
PartialFactorSetCUR,
PartialFactorSetEC,
PartialFactorSetEC7NADBE,
RiskClassEC7BE,
PartialFactorSetEC7NADNL,
AssessmentTypeEC7NL,
PartialFactorSetVerifyEC,
PassiveSide,
RiskClassEC7BE,
SheetPilingElementMaterialType,
Side,
SoilTypeModulusSubgradeReaction,
Expand Down Expand Up @@ -396,7 +396,8 @@ def update_arguments_if_invalid_input(self) -> None:
5: self.sheetpilingelementkmod,
}
if (
self.sheetpilingelementkmod != result_dict_k_mod_value[self.sheetpilingelementmaterialtype.value]
self.sheetpilingelementkmod
!= result_dict_k_mod_value[self.sheetpilingelementmaterialtype.value]
):
self.sheetpilingelementkmod = result_dict_k_mod_value[
self.sheetpilingelementmaterialtype.value
Expand All @@ -416,8 +417,8 @@ def update_arguments_if_invalid_input(self) -> None:
5: self.sheetpilingelementmaterialfactor,
}
if (
self.sheetpilingelementmaterialfactor !=
result_dict_gamma_m_value[self.sheetpilingelementmaterialtype.value]
self.sheetpilingelementmaterialfactor
!= result_dict_gamma_m_value[self.sheetpilingelementmaterialtype.value]
):
self.sheetpilingelementmaterialfactor = result_dict_gamma_m_value[
self.sheetpilingelementmaterialtype.value
Expand Down
1 change: 1 addition & 0 deletions geolib/models/dsheetpiling/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class PartialFactorSetEC7NADNL(IntEnum):
RC3 = 3
SLS = 4


class AssessmentTypeEC7NL(IntEnum):
NewConstruction = 0
Reconstruction = 1
Expand Down
1 change: 0 additions & 1 deletion tests/models/dsettlement/test_internal_soil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from geolib.models.dsettlement.internal import DSettlementStructure
from geolib.models.dsettlement.internal_soil import PreconType
from geolib.soils import Soil, SoilClassificationParameters, StateType

from tests.utils import TestUtils


Expand Down
7 changes: 1 addition & 6 deletions tests/models/dstability/test_loads.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
PersistableTree,
PersistableUniformLoad,
)
from geolib.models.dstability.loads import (
Consolidation,
LineLoad,
TreeLoad,
UniformLoad,
)
from geolib.models.dstability.loads import Consolidation, LineLoad, TreeLoad, UniformLoad


@pytest.fixture
Expand Down

0 comments on commit 8dbc5b4

Please sign in to comment.