Skip to content

Commit 3f44bc1

Browse files
Merge branch 'main' into 490-feature-request-use-uv-in-the-workflows-instead-of-pip
2 parents d1501c3 + 2a34729 commit 3f44bc1

File tree

4 files changed

+31
-28
lines changed

4 files changed

+31
-28
lines changed

blueprints/checks/nominal_concrete_cover/constants/constants_nen_en_1992_1_1_c2_2011.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def minimum_cover_with_regard_to_casting_surface_latex(casting_surface: CastingS
5151
case CastingSurface.PERMANENTLY_EXPOSED | CastingSurface.FORMWORK:
5252
return f"0 (No additional requirements for {casting_surface.value})"
5353
case CastingSurface.PREPARED_GROUND:
54-
return f"k1 c_{{min,dur}} + 40 mm for {casting_surface.value}"
54+
return f"k1 \\ge c_{{min,dur}} + 40 mm for {casting_surface.value}"
5555
case CastingSurface.DIRECTLY_AGAINST_SOIL:
56-
return f"k2 c_{{min,dur}} + 75 mm for {casting_surface.value}"
56+
return f"k2 \\ge c_{{min,dur}} + 75 mm for {casting_surface.value}"

blueprints/checks/nominal_concrete_cover/nominal_concrete_cover.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def value(self) -> MM:
162162

163163
def latex(self) -> str:
164164
"""Returns the lateX string representation for Nominal concrete cover check."""
165-
return r"\newline ".join(
165+
return r"\newline~".join(
166166
[
167167
f"Nominal concrete cover according to art. 4.4.1 from NEN-EN 1992-1-1{self.constants.CODE_SUFFIX}:",
168168
latex_max_curly_brackets(
@@ -172,21 +172,24 @@ def latex(self) -> str:
172172
f"= {latex_max_curly_brackets(self.c_nom().latex().result, self.minimum_cover_with_regard_to_casting_surface())} = {self.value()} mm",
173173
"",
174174
"Where:",
175-
f"{self.c_nom().latex().return_symbol} = {self.c_nom().latex().equation.replace('min', 'min,total')}"
175+
f"\\hspace{{4ex}}{self.c_nom().latex().return_symbol} = {self.c_nom().latex().equation.replace('min', 'min,total')}"
176176
f" = {self.c_nom().latex().numeric_equation} = {self.c_nom().latex().result} mm",
177-
r"\Delta c_{dev} is determined according to art. 4.4.1.3 (1)",
178-
r"c_{min,total} = c_{min} + \Delta c_{uneven surface} + \Delta c_{abrasion class}"
177+
r"\hspace{4ex}\Delta c_{dev} is determined according to art. 4.4.1.3 (1)",
178+
r"\hspace{4ex}c_{min,total} = c_{min} + \Delta c_{uneven surface} + \Delta c_{abrasion class}"
179179
f" = {self.c_min().latex().result} + {self.cover_increase_for_uneven_surface()} + {self.cover_increase_for_abrasion_class()}"
180180
f" = {self.c_min_total()} mm",
181-
r"\Delta c_{uneven surface} and \Delta c_{abrasion class} are determined according to art. 4.4.1.2 (11) and (13)",
182-
f"{self.c_min().latex().return_symbol} = {self.c_min().latex().equation}"
181+
r"\hspace{4ex}\Delta c_{uneven surface} and \Delta c_{abrasion class} are determined according to art. 4.4.1.2 (11) and (13)",
182+
f"\\hspace{{4ex}}{self.c_min().latex().return_symbol} = {self.c_min().latex().equation}"
183183
f" = {self.c_min().latex().numeric_equation} = {self.c_min().latex().result} mm",
184-
r"\Delta c_{dur,\gamma} , \Delta c_{dur,st} and \Delta c_{dur,add} are determined according to art. 4.4.1.2 (6), (7) and (8)",
185-
f"{self.c_min_b().latex().return_symbol} is determined according to table 4.2 based on {self.c_min_b().latex().equation}"
184+
r"\hspace{4ex}\Delta c_{dur,\gamma} , \Delta c_{dur,st} and \Delta c_{dur,add} "
185+
r"are determined according to art. 4.4.1.2 (6), (7) and (8)",
186+
f"\\hspace{{4ex}}{self.c_min_b().latex().return_symbol} is determined according to "
187+
f"table 4.2 based on {self.c_min_b().latex().equation}"
186188
f" = {self.c_min_b().latex().numeric_equation} = {self.c_min_b().latex().result} mm",
187-
f"{self.c_min_dur().latex().return_symbol} is determined according to table 4.3 based on {self.c_min_dur().latex().equation}"
189+
f"\\hspace{{4ex}}{self.c_min_dur().latex().return_symbol} is determined according to "
190+
f"table 4.4 based on {self.c_min_dur().latex().equation}"
188191
f" = {self.c_min_dur().latex().result} mm",
189-
"Minimum cover with regard to casting surface according to art. 4.4.1.3 (4) = "
192+
r"\hspace{4ex}Minimum cover with regard to casting surface according to art. 4.4.1.3 (4) = "
190193
+ self.constants.minimum_cover_with_regard_to_casting_surface_latex(self.casting_surface),
191194
]
192195
).replace(" ", "~")

tests/checks/nominal_concrete_cover/test_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def test_minimum_cover_with_regard_to_casting_surface(self, c_min_dur: MM, casti
120120
[
121121
(CastingSurface.PERMANENTLY_EXPOSED, "0 (No additional requirements for Permanently exposed)"),
122122
(CastingSurface.FORMWORK, "0 (No additional requirements for Formwork)"),
123-
(CastingSurface.PREPARED_GROUND, "k1 c_{min,dur} + 40 mm for Prepared ground (including blinding)"),
124-
(CastingSurface.DIRECTLY_AGAINST_SOIL, "k2 c_{min,dur} + 75 mm for Directly against soil"),
123+
(CastingSurface.PREPARED_GROUND, "k1 \\ge c_{min,dur} + 40 mm for Prepared ground (including blinding)"),
124+
(CastingSurface.DIRECTLY_AGAINST_SOIL, "k2 \\ge c_{min,dur} + 75 mm for Directly against soil"),
125125
],
126126
)
127127
def test_minimum_cover_with_regard_to_casting_surface_latex(self, casting_surface: CastingSurface, expected_result: str) -> None:

tests/checks/nominal_concrete_cover/test_nominal_concrete_cover.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,20 @@ def test_latex(self) -> None:
243243
)
244244

245245
assert (
246-
nominal_concrete_cover.latex() == r"Nominal~concrete~cover~according~to~art.~4.4.1~from~NEN-EN~1992-1-1+C2:2011:\newline"
247-
r"~\max~\left\{Nominal~concrete~cover~according~to~art.~4.4.1~(c_{nom});~Minimum~cover~with~regard~to~casting~surface~according~to~art.~4.4.1.3~(4)\right\}\newline"
248-
r"~=~\max~\left\{55.0;~110.0\right\}~=~110.0~mm\newline"
249-
r"~\newline"
250-
r"~Where:\newline"
251-
r"~c_{nom}~=~c_{min,total}+\Delta~c_{dev}~=~45.0+10~=~55.0~mm\newline"
252-
r"~\Delta~c_{dev}~is~determined~according~to~art.~4.4.1.3~(1)\newline"
253-
r"~c_{min,total}~=~c_{min}~+~\Delta~c_{uneven~surface}~~+~\Delta~c_{abrasion~class}~=~35.0~+~5~+~5~=~45.0~mm\newline"
254-
r"~\Delta~c_{uneven~surface}~and~\Delta~c_{abrasion~class}~are~determined~according~to~art.~4.4.1.2~(11)~and~(13)\newline"
255-
r"~c_{min}~=~\max~\left\{c_{min,b};~c_{min,dur}+\Delta~c_{dur,\gamma}-\Delta~c_{dur,st}-\Delta~c_{dur,add};~10~\text{mm}\right\}~=~\max~\left\{30.0;~35.0+0-0-0;~10\right\}~=~35.0~mm\newline"
256-
r"~\Delta~c_{dur,\gamma}~,~\Delta~c_{dur,st}~and~\Delta~c_{dur,add}~are~determined~according~to~art.~4.4.1.2~(6),~(7)~and~(8)\newline"
257-
r"~c_{min,b}~is~determined~according~to~table~4.2~based~on~(equivalent)~rebar~diameter~+~5~=~25~+~5~=~30~mm\newline"
258-
r"~c_{min,dur}~is~determined~according~to~table~4.3~based~on~structural~class~S4~\&~exposure~classes~(XC1,~XD1,~XS1)~=~35~mm\newline"
259-
r"~Minimum~cover~with~regard~to~casting~surface~according~to~art.~4.4.1.3~(4)~=~k2~~c_{min,dur}~+~75~mm~for~Directly~against~soil"
246+
nominal_concrete_cover.latex() == r"Nominal~concrete~cover~according~to~art.~4.4.1~from~NEN-EN~1992-1-1+C2:2011:\newline~"
247+
r"\max~\left\{Nominal~concrete~cover~according~to~art.~4.4.1~(c_{nom});~Minimum~cover~with~regard~to~casting~surface~according~to~art.~4.4.1.3~(4)\right\}\newline~"
248+
r"=~\max~\left\{55.0;~110.0\right\}~=~110.0~mm\newline~"
249+
r"\newline~"
250+
r"Where:\newline~"
251+
r"\hspace{4ex}c_{nom}~=~c_{min,total}+\Delta~c_{dev}~=~45.0+10~=~55.0~mm\newline~"
252+
r"\hspace{4ex}\Delta~c_{dev}~is~determined~according~to~art.~4.4.1.3~(1)\newline~"
253+
r"\hspace{4ex}c_{min,total}~=~c_{min}~+~\Delta~c_{uneven~surface}~~+~\Delta~c_{abrasion~class}~=~35.0~+~5~+~5~=~45.0~mm\newline~"
254+
r"\hspace{4ex}\Delta~c_{uneven~surface}~and~\Delta~c_{abrasion~class}~are~determined~according~to~art.~4.4.1.2~(11)~and~(13)\newline~"
255+
r"\hspace{4ex}c_{min}~=~\max~\left\{c_{min,b};~c_{min,dur}+\Delta~c_{dur,\gamma}-\Delta~c_{dur,st}-\Delta~c_{dur,add};~10~\text{mm}\right\}~=~\max~\left\{30.0;~35.0+0-0-0;~10\right\}~=~35.0~mm\newline~"
256+
r"\hspace{4ex}\Delta~c_{dur,\gamma}~,~\Delta~c_{dur,st}~and~\Delta~c_{dur,add}~are~determined~according~to~art.~4.4.1.2~(6),~(7)~and~(8)\newline~"
257+
r"\hspace{4ex}c_{min,b}~is~determined~according~to~table~4.2~based~on~(equivalent)~rebar~diameter~+~5~=~25~+~5~=~30~mm\newline~"
258+
r"\hspace{4ex}c_{min,dur}~is~determined~according~to~table~4.4~based~on~structural~class~S4~\&~exposure~classes~(XC1,~XD1,~XS1)~=~35~mm\newline~"
259+
r"\hspace{4ex}Minimum~cover~with~regard~to~casting~surface~according~to~art.~4.4.1.3~(4)~=~k2~\ge~c_{min,dur}~+~75~mm~for~Directly~against~soil"
260260
)
261261

262262
assert str(nominal_concrete_cover) == "Nominal concrete cover according to art. 4.4.1 = 110.0 mm"

0 commit comments

Comments
 (0)