Skip to content

Commit

Permalink
use indexer in modularity test
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Nov 30, 2023
1 parent 36c08c6 commit 0fc7687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ def test_standardized_index_modularity(self, open_dataset):
dist=dist,
method=method,
offset="1 mm/d",
month=[2, 3],
)
spei1 = xci.standardized_precipitation_evapotranspiration_index(
wb.sel(time=slice("1998", "2000")), params=params
Expand All @@ -667,6 +668,7 @@ def test_standardized_index_modularity(self, open_dataset):
offset="1 mm/d",
cal_start="1950",
cal_end="1980",
month=[2, 3],
).sel(time=slice("1998", "2000"))

# In the previous computation, the first {window-1} values are NaN because the rolling is performed on the period [1998,2000].
Expand Down

0 comments on commit 0fc7687

Please sign in to comment.