Skip to content

Commit

Permalink
remove filterwarning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Oct 17, 2024
1 parent b7e8716 commit 6f92c82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ def test_effective_growing_degree_days(
class TestStandardizedIndices:
# gamma/APP reference results: Obtained with `monocongo/climate_indices` library
# MS/fisk/ML reference results: Obtained with R package `SPEI`
# Using the method `APP` in XClim matches the method from monocongo, hence the very low
# tolerance possible.
# Using the method `APP` in XClim matches the method from monocongo, hence the very low tolerance possible.
# Repeated tests with lower tolerance means we want a more precise comparison, so we compare
# the current version of XClim with the version where the test was implemented
# the current version of XClim with the version where the test was implemented.
# Additionally, xarray does not yet access "week" or "weekofyear" with groupby in a pandas-compatible way for cftime objects.
# See: https://github.com/pydata/xarray/discussions/6375
@pytest.mark.slow
@pytest.mark.filterwarnings("ignore:dt.weekofyear and dt.week have been deprecated")
@pytest.mark.parametrize(
"freq, window, dist, method, values, diff_tol",
[
Expand Down

0 comments on commit 6f92c82

Please sign in to comment.