File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ def test_parse_dim_arg(self):
56
56
assert go .parse_dim_arg ("-3.4e-2" ) == - 3.4e-2
57
57
assert abs (go .parse_dim_arg ("180deg" ) - math .pi ) < tol
58
58
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
+ )
60
65
assert go .parse_dim_arg ("1m_per_h" ) == 3600.0
61
66
62
67
def test_cs_plane_str (self ):
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def scale_units(scale_to_unit):
169
169
Return the scaling factor if any.
170
170
"""
171
171
sunit = 1.0
172
- for el , val in AEDT_UNITS .items ( ):
172
+ for val in list ( AEDT_UNITS .values () ):
173
173
for unit , scale_val in val .items ():
174
174
if scale_to_unit .lower () == unit .lower ():
175
175
sunit = scale_val
You can’t perform that action at this time.
0 commit comments