Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Richard committed Sep 16, 2022
1 parent 793a95e commit df1e055
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ def ccl(pressure, temperature, dewpoint, height=None, mixed_layer_depth=None, wh
Dewpoint at the levels given by `pressure`
height : `pint.Quantity`, optional
Atmospheric heights at the levels given by `pressure`. Only needed when specifying a mixed layer
depth as a height.
Atmospheric heights at the levels given by `pressure`. Only needed when
specifying a mixed layer depth as a height.
mixed_layer_depth : `pint.Quantity`, optional
The thickness of the mixed layer as a pressure or height above the bottom
Expand Down Expand Up @@ -538,8 +538,8 @@ def ccl(pressure, temperature, dewpoint, height=None, mixed_layer_depth=None, wh
elif which == 'bottom':
x, y = x[0], y[0]
elif which not in ['top', 'bottom', 'all']:
raise ValueError(f'Invalid option for "which": {which}. Valid options are "top", "bottom", '
'and "all".')
raise ValueError(f'Invalid option for "which": {which}. Valid options are '
'"top", "bottom", and "all".')

x, y = x.to(pressure.units), y.to(temperature.units)
return x, y, potential_temperature(x, y).to(temperature.units)
Expand Down

0 comments on commit df1e055

Please sign in to comment.