Skip to content

Commit

Permalink
Flake8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
robbievanleeuwen committed May 27, 2024
1 parent 1fde93b commit 9f9e6dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/concreteproperties/design_codes/nzs3101.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,15 +726,15 @@ def check_axial_limits(
# compare to axial load
if n_design < phi * max_ten:
raise ValueError(
f"The specified axial load of {n_design*n_scale:.2f} kN, is less than "
f"the tension capacity of the concrete section, phiN_t = "
f"{phi*max_ten*n_scale:.2f} kN"
f"The specified axial load of {n_design * n_scale:.2f} kN, is less "
f"than the tension capacity of the concrete section, phiN_t = "
f"{phi * max_ten * n_scale:.2f} kN"
)
elif n_design > phi * max_comp:
raise ValueError(
f"The specified axial load of {n_design*n_scale:.2f} kN, is greater "
f"The specified axial load of {n_design * n_scale:.2f} kN, is greater "
f"than the compression capacity of the concrete section, phiN_c = "
f"{phi*max_comp*n_scale:.2f} kN"
f"{phi * max_comp * n_scale:.2f} kN"
)

def check_f_y_limit(self) -> None:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_nzs3101.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def test_nzs3101_create_os_section(
for steel_geom in concrete_os_section.reinf_geometries_lumped:
assert (
pytest.approx(steel_geom.material.__getattribute__("steel_grade"))
== f"user_{yield_strength*phi_os:.0f}"
== f"user_{yield_strength * phi_os:.0f}"
)
assert (
pytest.approx(
Expand Down Expand Up @@ -833,7 +833,7 @@ def test_nzs3101_create_prob_section(
for steel_geom in concrete_prob_section.reinf_geometries_lumped:
assert (
pytest.approx(steel_geom.material.__getattribute__("steel_grade"))
== f"user_{yield_strength*1.08:.0f}"
== f"user_{yield_strength * 1.08:.0f}"
)
assert (
pytest.approx(
Expand Down Expand Up @@ -974,7 +974,7 @@ def test_nzs3101_create_prob_os_section(
for steel_geom in concrete_prob_section.reinf_geometries_lumped:
assert (
pytest.approx(steel_geom.material.__getattribute__("steel_grade"))
== f"user_{yield_strength*phi_os:.0f}"
== f"user_{yield_strength * phi_os:.0f}"
)
assert (
pytest.approx(
Expand Down

0 comments on commit 9f9e6dc

Please sign in to comment.