Skip to content

Commit

Permalink
MNT: wetbulb -> wet_bulb
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Nov 15, 2023
1 parent ecb5136 commit 457898e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/_templates/overrides/metpy.calc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Moist Thermodynamics
virtual_temperature
virtual_temperature_from_dewpoint
wet_bulb_temperature
wetbulb_potential_temperature
wet_bulb_potential_temperature


Soundings
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ def saturation_equivalent_potential_temperature(pressure, temperature):
broadcast=('pressure', 'temperature', 'dewpoint')
)
@check_units('[pressure]', '[temperature]', '[temperature]')
def wetbulb_potential_temperature(pressure, temperature, dewpoint):
def wet_bulb_potential_temperature(pressure, temperature, dewpoint):
r"""Calculate wet-bulb potential temperature.
This calculation must be given an air parcel's pressure, temperature, and dewpoint.
Expand Down
8 changes: 4 additions & 4 deletions tests/calc/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
vapor_pressure, vertical_totals, vertical_velocity,
vertical_velocity_pressure, virtual_potential_temperature,
virtual_temperature, virtual_temperature_from_dewpoint,
wet_bulb_temperature, wetbulb_potential_temperature)
wet_bulb_potential_temperature, wet_bulb_temperature)
from metpy.calc.thermo import _find_append_zero_crossings
from metpy.testing import (assert_almost_equal, assert_array_almost_equal, assert_nan,
version_check)
Expand Down Expand Up @@ -802,12 +802,12 @@ def test_equivalent_potential_temperature_masked():
assert_array_almost_equal(ept, expected, 3)


def test_wetbulb_potential_temperature():
"""Test wetbulb potential temperature calculation."""
def test_wet_bulb_potential_temperature():
"""Test wet_bulb potential temperature calculation."""
p = 1000 * units.mbar
t = 293. * units.kelvin
td = 291. * units.kelvin
wpt = wetbulb_potential_temperature(p, t, td)
wpt = wet_bulb_potential_temperature(p, t, td)
assert_almost_equal(wpt, 291.65839705486565 * units.kelvin, 3)


Expand Down

0 comments on commit 457898e

Please sign in to comment.