Skip to content

Commit

Permalink
Add units as comment in pr and tasrange
Browse files Browse the repository at this point in the history
This should help setting appropriate tolerance values.
  • Loading branch information
rgieseke authored and matthiasmengel committed Dec 12, 2024
1 parent 15cb94c commit 64d94d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_detrend.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def test_detrend_run_tasskew():

@pytest.mark.slow
def test_detrend_run_tasrange():
# Unit of tasrange: K
actual, desired = detrend_run("tasrange")
np.testing.assert_allclose(actual.cfact, desired.cfact, rtol=1e-06, atol=1e-05)
np.testing.assert_allclose(actual.y, desired.y)
Expand All @@ -74,6 +75,7 @@ def test_detrend_run_tasrange():

@pytest.mark.slow
def test_detrend_run_pr():
# Unit of pr: kg m-2 s-1
actual, desired = detrend_run("pr")

# Days with rain in both
Expand Down

0 comments on commit 64d94d0

Please sign in to comment.