Skip to content

Commit 0e96d52

Browse files
maxcapodi78maxcapodi78
authored andcommitted
Fixed black
1 parent 8f5efc8 commit 0e96d52

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

_unittest/test_00_GeometryOperators.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ def test_parse_dim_arg(self):
5656
assert go.parse_dim_arg("-3.4e-2") == -3.4e-2
5757
assert abs(go.parse_dim_arg("180deg") - math.pi) < tol
5858
assert go.parse_dim_arg("1.57rad") == 1.57
59-
assert go.parse_dim_arg("3km", ) == 3000.0
59+
assert (
60+
go.parse_dim_arg(
61+
"3km",
62+
)
63+
== 3000.0
64+
)
6065
assert go.parse_dim_arg("1m_per_h") == 3600.0
6166

6267
def test_cs_plane_str(self):

pyaedt/generic/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def scale_units(scale_to_unit):
169169
Return the scaling factor if any.
170170
"""
171171
sunit = 1.0
172-
for el, val in AEDT_UNITS.items():
172+
for val in list(AEDT_UNITS.values()):
173173
for unit, scale_val in val.items():
174174
if scale_to_unit.lower() == unit.lower():
175175
sunit = scale_val

0 commit comments

Comments
 (0)