Skip to content

Commit

Permalink
fix whitespace and linewidth
Browse files Browse the repository at this point in the history
  • Loading branch information
Osamu Miyawaki committed Oct 19, 2023
1 parent 90f29b1 commit f89bc6f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def dt_r14(p, t, params):
(mpconsts.nounit.Rd * mpconsts.nounit.Lv) - 1) * mpconsts.nounit.g * de )
frac = ( mpconsts.nounit.Rd * t / (mpconsts.nounit.g) *
mpconsts.nounit.Rv * t**2 / mpconsts.nounit.Lv *
((-a2+np.sqrt(a2**2 - 4 * a1 * a3)) / (2 * a1) +
((-a2 + np.sqrt(a2**2 - 4 * a1 * a3)) / (2 * a1) +

Check failure on line 419 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 W291 [*] Trailing whitespace Raw Output: src/metpy/calc/thermo.py:419:67: W291 [*] Trailing whitespace
mpconsts.nounit.g / (mpconsts.nounit.Rd * t)) )
return frac / p

Expand All @@ -435,7 +435,7 @@ def dt_r14(p, t, params):
params={'rt':saturation_mixing_ratio._nounit(reference_pressure,temperature)}
elif lapse_type == 'so13':
dt=dt_so13
params.update({'h0':mpconsts.nounit.Rd * temperature[0] / mpconsts.nounit.g,
params.update({'h0':mpconsts.nounit.Rd * temperature[0] / mpconsts.nounit.g,
'p0':pressure[0]})
elif lapse_type == 'r14':
dt=dt_r14
Expand Down Expand Up @@ -1124,7 +1124,8 @@ def parcel_profile(pressure, temperature, dewpoint, lapse_type='standard', param
@exporter.export
@preprocess_and_wrap()
@check_units('[pressure]', '[temperature]', '[temperature]')
def parcel_profile_with_lcl(pressure, temperature, dewpoint, lapse_type='standard', params=None):
def parcel_profile_with_lcl(pressure, temperature, dewpoint,
lapse_type='standard', params=None):
r"""Calculate the profile a parcel takes through the atmosphere.
The parcel starts at `temperature`, and `dewpoint`, lifted up
Expand Down Expand Up @@ -1360,7 +1361,8 @@ def _parcel_profile_helper(pressure, temperature, dewpoint, lapse_type, params):
'Output profile includes duplicate temperatures as a result.')

# Find moist pseudo-adiabatic profile starting at the LCL, reversing above sorting
temp_upper = moist_lapse(unique[::-1], temp_lower[-1], lapse_type=lapse_type, params=params).to(temp_lower.units)
temp_upper = moist_lapse(unique[::-1], temp_lower[-1],
lapse_type=lapse_type, params=params).to(temp_lower.units)
temp_upper = temp_upper[::-1][indices]

# Return profile pieces
Expand Down

0 comments on commit f89bc6f

Please sign in to comment.