Skip to content

Commit

Permalink
Update test values
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Oct 26, 2023
1 parent 8e8714a commit 9f5df67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/calc/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def test_rh_mixing_ratio():
temperature = 20. * units.degC
w = 0.012 * units.dimensionless
rh = relative_humidity_from_mixing_ratio(p, temperature, w)
assert_almost_equal(rh, 81.72498 * units.percent, 3)
assert_almost_equal(rh, 82.0709069 * units.percent, 3)


def test_mixing_ratio_from_specific_humidity():
Expand Down Expand Up @@ -1116,7 +1116,7 @@ def test_rh_specific_humidity():
temperature = 20. * units.degC
q = 0.012 * units.dimensionless
rh = relative_humidity_from_specific_humidity(p, temperature, q)
assert_almost_equal(rh, 82.71759 * units.percent, 3)
assert_almost_equal(rh, 83.0486264 * units.percent, 3)


def test_cape_cin():
Expand Down Expand Up @@ -1617,7 +1617,7 @@ def test_thickness_hydrostatic_from_relative_humidity():
relative_humidity = np.array([81.69, 15.43, 18.95, 23.32, 28.36, 18.55]) * units.percent
thickness = thickness_hydrostatic_from_relative_humidity(pressure, temperature,
relative_humidity)
assert_almost_equal(thickness, 9891.71 * units.m, 2)
assert_almost_equal(thickness, 9891.56669 * units.m, 2)


def test_mixing_ratio_dimensions():
Expand Down

0 comments on commit 9f5df67

Please sign in to comment.