Skip to content

Commit

Permalink
break up long line
Browse files Browse the repository at this point in the history
  • Loading branch information
ahijevyc committed Feb 13, 2025
1 parent 744e35f commit ce877b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2671,8 +2671,11 @@ def cape_cin(pressure, temperature, dewpoint, parcel_profile, which_lfc='bottom'

# The mixing ratio of the parcel comes from the dewpoint below the LCL, is saturated
# based on the temperature above the LCL
parcel_mixing_ratio = np.where(below_lcl, saturation_mixing_ratio(pressure[0], dewpoint[0]),
saturation_mixing_ratio(pressure, parcel_profile))
parcel_mixing_ratio = np.where(
below_lcl,
saturation_mixing_ratio(pressure[0], dewpoint[0]),
saturation_mixing_ratio(pressure, parcel_profile)
)

# Convert the temperature/parcel profile to virtual temperature
temperature = virtual_temperature_from_dewpoint(pressure, temperature, dewpoint)
Expand Down

0 comments on commit ce877b8

Please sign in to comment.