diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py index 15aebd3b11..ab0668b148 100644 --- a/src/metpy/calc/thermo.py +++ b/src/metpy/calc/thermo.py @@ -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)