Skip to content

Commit

Permalink
remove sdba- in references
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Oct 7, 2024
1 parent a69dd31 commit 8e22153
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions src/xsdba/adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class EmpiricalQuantileMapping(TrainAdjust):
References
----------
:cite:cts:`sdba-deque_frequency_2007`
:cite:cts:`deque_frequency_2007`
"""

_allow_diff_calendars = False
Expand Down Expand Up @@ -511,7 +511,7 @@ class DetrendedQuantileMapping(TrainAdjust):
References
----------
:cite:cts:`sdba-cannon_bias_2015`
:cite:cts:`cannon_bias_2015`
"""

_allow_diff_calendars = False
Expand Down Expand Up @@ -622,7 +622,7 @@ class QuantileDeltaMapping(EmpiricalQuantileMapping):
References
----------
:cite:cts:`sdba-cannon_bias_2015`
:cite:cts:`cannon_bias_2015`
"""

def _adjust(self, sim, interp="nearest", extrapolation="constant"):
Expand Down Expand Up @@ -716,8 +716,8 @@ class ExtremeValues(TrainAdjust):
References
----------
:cite:cts:`sdba-roy_juliaclimateclimatetoolsjl_2021`
:cite:cts:`sdba-roy_extremeprecip_2023`
:cite:cts:`roy_juliaclimateclimatetoolsjl_2021`
:cite:cts:`roy_extremeprecip_2023`
"""

@classmethod
Expand Down Expand Up @@ -839,7 +839,7 @@ class LOCI(TrainAdjust):
References
----------
:cite:cts:`sdba-schmidli_downscaling_2006`
:cite:cts:`schmidli_downscaling_2006`
"""

_allow_diff_calendars = False
Expand Down Expand Up @@ -984,7 +984,7 @@ class PrincipalComponents(TrainAdjust):
References
----------
:cite:cts:`sdba-hnilica_multisite_2017,sdba-alavoine_distinct_2022`
:cite:cts:`hnilica_multisite_2017,sdba-alavoine_distinct_2022`
"""

@classmethod
Expand Down Expand Up @@ -1184,7 +1184,7 @@ class NpdfTransform(Adjust):
References
----------
:cite:cts:`sdba-cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-pitie_n-dimensional_2005,sdba-mezzadri_how_2007,sdba-szekely_testing_2004`
:cite:cts:`cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-pitie_n-dimensional_2005,sdba-mezzadri_how_2007,sdba-szekely_testing_2004`
"""

@classmethod
Expand Down Expand Up @@ -1367,7 +1367,7 @@ class MBCn(TrainAdjust):
References
----------
:cite:cts:`sdba-cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-pitie_n-dimensional_2005,sdba-mezzadri_how_2007,sdba-szekely_testing_2004`
:cite:cts:`cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-pitie_n-dimensional_2005,sdba-mezzadri_how_2007,sdba-szekely_testing_2004`
Notes
-----
Expand Down
8 changes: 4 additions & 4 deletions src/xsdba/loess.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def _loess_nb(
References
----------
:cite:cts:`sdba-cleveland_robust_1979`
:cite:cts:`cleveland_robust_1979`
Code adapted from: :cite:cts:`sdba-gramfort_lowess_2015`
Code adapted from: :cite:cts:`gramfort_lowess_2015`
"""
if skipna:
nan = np.isnan(y)
Expand Down Expand Up @@ -232,9 +232,9 @@ def loess_smoothing(
References
----------
:cite:cts:`sdba-cleveland_robust_1979`
:cite:cts:`cleveland_robust_1979`
Code adapted from: :cite:cts:`sdba-gramfort_lowess_2015`
Code adapted from: :cite:cts:`gramfort_lowess_2015`
"""
x = da[dim]
x = ((x - x[0]) / (x[-1] - x[0])).astype(float)
Expand Down
10 changes: 5 additions & 5 deletions src/xsdba/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def adapt_freq(
References
----------
:cite:cts:`sdba-themesl_empirical-statistical_2012`
:cite:cts:`themesl_empirical-statistical_2012`
"""
out = _adapt_freq(xr.Dataset(dict(sim=sim, ref=ref)), group=group, thresh=thresh)

Expand Down Expand Up @@ -369,7 +369,7 @@ def reordering(ref: xr.DataArray, sim: xr.DataArray, group: str = "time") -> xr.
References
----------
:cite:cts:`sdba-cannon_multivariate_2018`.
:cite:cts:`cannon_multivariate_2018`.
"""
ds = xr.Dataset({"sim": sim, "ref": ref})
out: xr.Dataset = _reordering(ds, group=group).reordered
Expand Down Expand Up @@ -435,7 +435,7 @@ def escore(
References
----------
:cite:cts:`sdba-baringhaus_new_2004,sdba-cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-szekely_testing_2004`.
:cite:cts:`baringhaus_new_2004,sdba-cannon_multivariate_2018,sdba-cannon_mbc_2020,sdba-szekely_testing_2004`.
"""
pts_dim, obs_dim = dims

Expand Down Expand Up @@ -554,7 +554,7 @@ def to_additive_space(
References
----------
:cite:cts:`sdba-alavoine_distinct_2022`.
:cite:cts:`alavoine_distinct_2022`.
"""
# with units.context(infer_context(data.attrs.get("standard_name"))):
lower_bound_array = np.array(lower_bound).astype(float)
Expand Down Expand Up @@ -650,7 +650,7 @@ def from_additive_space(
References
----------
:cite:cts:`sdba-alavoine_distinct_2022`.
:cite:cts:`alavoine_distinct_2022`.
"""
if trans is None and lower_bound is None and units is None:
try:
Expand Down
14 changes: 7 additions & 7 deletions src/xsdba/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def best_pc_orientation_simple(
References
----------
:cite:cts:`sdba-hnilica_multisite_2017`
:cite:cts:`hnilica_multisite_2017`
"""
m = R.shape[0]
P = np.diag(val * np.ones(m))
Expand Down Expand Up @@ -691,7 +691,7 @@ def best_pc_orientation_full(
References
----------
:cite:cts:`sdba-alavoine_distinct_2022`
:cite:cts:`alavoine_distinct_2022`
See Also
--------
Expand Down Expand Up @@ -735,7 +735,7 @@ def get_clusters_1d(
References
----------
`getcluster` of Extremes.jl (:cite:cts:`sdba-jalbert_extreme_2022`).
`getcluster` of Extremes.jl (:cite:cts:`jalbert_extreme_2022`).
"""
# Boolean array, True where data is over u2
# We pad with values under u2, so that clusters never start or end at boundaries.
Expand Down Expand Up @@ -876,7 +876,7 @@ def rand_rot_matrix(
References
----------
:cite:cts:`sdba-mezzadri_how_2007`
:cite:cts:`mezzadri_how_2007`
"""
if num > 1:
return xr.concat([rand_rot_matrix(crd, num=1) for i in range(num)], "matrices")
Expand Down Expand Up @@ -971,7 +971,7 @@ def bin_width_estimator(X):
References
----------
:cite:cts:`sdba-robin_2021`
:cite:cts:`robin_2021`
"""
if isinstance(X, list):
return np.min([bin_width_estimator(x) for x in X], axis=0)
Expand Down Expand Up @@ -1019,7 +1019,7 @@ def optimal_transport(gridX, gridY, muX, muY, num_iter_max, normalization):
References
----------
:cite:cts:`sdba-robin_2021`
:cite:cts:`robin_2021`
"""
try:
from ot import emd # pylint: disable=import-outside-toplevel
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def eps_cholesky(M, nit=26):
References
----------
:cite:cts:`sdba-robin_2021,sdba-higham_1988,sdba-knol_1989`
:cite:cts:`robin_2021,sdba-higham_1988,sdba-knol_1989`
"""
MC = None
try:
Expand Down

0 comments on commit 8e22153

Please sign in to comment.