Skip to content

Commit

Permalink
more checks in many classes
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Nov 27, 2024
1 parent 4c873fe commit 1a11cb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xclim/sdba/adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ class EmpiricalQuantileMapping(TrainAdjust):
:cite:cts:`sdba-deque_frequency_2007`
"""

_allow_diff_calendars = False
_allow_diff_training_times = False

@classmethod
Expand Down Expand Up @@ -577,6 +578,7 @@ class DetrendedQuantileMapping(TrainAdjust):
"""

_allow_diff_calendars = False
_allow_diff_training_times = False

@classmethod
Expand Down Expand Up @@ -956,6 +958,7 @@ class Scaling(TrainAdjust):
The interpolation method to use then interpolating the adjustment factors. Defaults to "nearest".
"""

_allow_diff_calendars = False
_allow_diff_training_times = False

@classmethod
Expand Down Expand Up @@ -1428,6 +1431,7 @@ class OTC(Adjust):
:cite:cts:`sdba-robin_2019,sdba-robin_2021`
"""

_allow_diff_calendars = False
_allow_diff_time_sizes = False

@classmethod
Expand Down Expand Up @@ -1585,7 +1589,7 @@ class dOTC(Adjust):
:cite:cts:`sdba-robin_2019,sdba-robin_2021`
"""

_allow_diff_training_times = False
_allow_diff_calendars = False
_allow_diff_time_sizes = False

@classmethod
Expand Down Expand Up @@ -1778,6 +1782,7 @@ class MBCn(TrainAdjust):
Only "time" and "time.dayofyear" (with a suitable window) are implemented as possible values for `group`.
"""

_allow_diff_calendars = False
_allow_diff_training_times = False
_allow_diff_time_sizes = False

Expand Down

0 comments on commit 1a11cb6

Please sign in to comment.