diff --git a/src/xclim/sdba/base.py b/src/xclim/sdba/base.py index 4baa9edf0..0c2d3f626 100644 --- a/src/xclim/sdba/base.py +++ b/src/xclim/sdba/base.py @@ -311,8 +311,6 @@ def get_index( # the first season is shifted by 1 month the but the middle of the season is shifted in the other direction # by half a month so -(1/12-1/24)*4 = -1/6 i = ind.dayofyear / length_year * 4 - 1 / 6 - elif self.prop == "dayofyear": - i = ind.dayofyear else: raise ValueError( f"Interpolation is not supported for {self.dim}.{self.prop}." diff --git a/tests/test_sdba/test_adjustment.py b/tests/test_sdba/test_adjustment.py index d9a348ea7..670b24cd0 100644 --- a/tests/test_sdba/test_adjustment.py +++ b/tests/test_sdba/test_adjustment.py @@ -842,7 +842,7 @@ def test_real_data(self, open_dataset): ref, hist, group=Grouper("time.dayofyear", window=31), nquantiles=quantiles ) - scen = EQM.adjust(hist, interp="linear", extrapolation="constant") + scen = EQM.adjust(hist, extrapolation="constant") EX = ExtremeValues.train(ref, hist, cluster_thresh="1 mm/day", q_thresh=0.97) new_scen = EX.adjust(scen, hist, frac=0.000000001)