Skip to content

Commit

Permalink
Fixed flake8 errors of pipeline and accomodated further suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
joernu76 committed May 4, 2020
1 parent ca773b4 commit 8985355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/_templates/overrides/metpy.calc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Boundary Layer/Turbulence
brunt_vaisala_frequency_squared
brunt_vaisala_period
friction_velocity
gradient_richardson_number
tke


Expand Down
3 changes: 2 additions & 1 deletion src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,8 @@ def gradient_richardson_number(height, potential_temperature, u, v, axis=0):
.. math:: Ri = (g/\theta) * \frac{\left(\partial \theta/\partial z\)}
{[\left(\partial u / \partial z\right)^2 + \left(\partial v / \partial z\right)^2}
See [Holton2004]_ pg. 121-122. As noted by [Holton2004]_, flux Richardson number values below 0.25 indicate turbulence.
See [Holton2004]_ pg. 121-122. As noted by [Holton2004]_, flux Richardson
number values below 0.25 indicate turbulence.
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions tests/calc/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
brunt_vaisala_period, cape_cin, density, dewpoint,
dewpoint_from_relative_humidity, dewpoint_from_specific_humidity,
dry_lapse, dry_static_energy, el, equivalent_potential_temperature,
exner_function, isentropic_interpolation, lcl, lfc, mixed_layer,
exner_function, gradient_richardson_number,
isentropic_interpolation, lcl, lfc, mixed_layer,
mixed_layer_cape_cin, mixed_parcel, mixing_ratio,
mixing_ratio_from_relative_humidity,
mixing_ratio_from_specific_humidity, moist_lapse,
Expand All @@ -22,7 +23,6 @@
relative_humidity_from_mixing_ratio,
relative_humidity_from_specific_humidity,
relative_humidity_wet_psychrometric,
gradient_richardson_number,
saturation_equivalent_potential_temperature,
saturation_mixing_ratio,
saturation_vapor_pressure,
Expand Down

0 comments on commit 8985355

Please sign in to comment.