Skip to content

Commit 846bb81

Browse files
committed
Fix linting issues
1 parent 2e6fe60 commit 846bb81

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/metpy/calc/thermo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,8 +3477,9 @@ def thickness_hydrostatic(pressure, temperature, mixing_ratio=None,
34773477

34783478
# Take the integral
34793479
diff_logp = np.diff(np.log(layer_p))
3480-
thickness = (-mpconsts.nounit.Rd / mpconsts.nounit.g *
3481-
diff_logp * (layer_virttemp[1:] + layer_virttemp[:-1]) / 2.)
3480+
thickness = (-mpconsts.nounit.Rd / mpconsts.nounit.g * diff_logp * (
3481+
layer_virttemp[1:] + layer_virttemp[:-1]) / 2.)
3482+
34823483
return thickness if full_profile else np.sum(thickness)
34833484

34843485

tests/calc/test_thermo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ def test_thickness_hydrostatic_full_profile():
16121612
pressure = np.array([959., 779.2, 751.3, 724.3, 700., 269.]) * units.hPa
16131613
temperature = np.array([22.2, 14.6, 12., 9.4, 7., -38.]) * units.degC
16141614
mixing = np.array([0.01458, 0.00209, 0.00224, 0.00240, 0.00256, 0.00010])
1615-
thickness = thickness_hydrostatic(pressure, temperature, mixing_ratio=mixing,
1615+
thickness = thickness_hydrostatic(pressure, temperature, mixing_ratio=mixing,
16161616
full_profile=True)
16171617
result = [1780.778, 306.126, 304.513, 281.455, 7218.833] * units.m
16181618
assert_almost_equal(thickness, result, 2)

0 commit comments

Comments
 (0)