diff --git a/src/xsdba/indicator.py b/src/xsdba/indicator.py index fd376ed..4c01195 100644 --- a/src/xsdba/indicator.py +++ b/src/xsdba/indicator.py @@ -111,7 +111,7 @@ from functools import reduce from inspect import Parameter as _Parameter from inspect import Signature -from inspect import _empty as _empty_default # noqa +from inspect import _empty as _empty_default from inspect import signature from os import PathLike from pathlib import Path @@ -802,7 +802,7 @@ def __call__(self, *args, **kwds): # params : OrderedDict of parameters (var_kwargs as a single argument, if any) if self._version_deprecated: - self._show_deprecation_warning() # noqa + self._show_deprecation_warning() das, params, dsattrs = self._parse_variables_from_call(args, kwds) diff --git a/src/xsdba/locales.py b/src/xsdba/locales.py index ecde7e7..07bac51 100644 --- a/src/xsdba/locales.py +++ b/src/xsdba/locales.py @@ -1,4 +1,4 @@ -""" +"""# noqa: SS01 Internationalization ==================== diff --git a/src/xsdba/nbutils.py b/src/xsdba/nbutils.py index 88fc3d4..d676b1a 100644 --- a/src/xsdba/nbutils.py +++ b/src/xsdba/nbutils.py @@ -277,7 +277,7 @@ def quantile(da: DataArray, q: np.ndarray, dim: str | Sequence[Hashable]) -> Dat nogil=True, cache=False, ) -def remove_NaNs(x): # noqa +def remove_NaNs(x): """Remove NaN values from series.""" remove = np.zeros_like(x[0, :], dtype=boolean) for i in range(x.shape[0]): @@ -386,9 +386,7 @@ def _first_and_last_nonnull(arr): nogil=True, cache=False, ) -def _extrapolate_on_quantiles( - interp, oldx, oldg, oldy, newx, newg, method="constant" -): # noqa +def _extrapolate_on_quantiles(interp, oldx, oldg, oldy, newx, newg, method="constant"): """Apply extrapolation to the output of interpolation on quantiles with a given grouping. Arguments are the same as _interp_on_quantiles_2D. diff --git a/src/xsdba/processing.py b/src/xsdba/processing.py index feb2d66..b15fc53 100644 --- a/src/xsdba/processing.py +++ b/src/xsdba/processing.py @@ -581,12 +581,12 @@ def to_additive_space( raise NotImplementedError("`trans` must be one of 'log' or 'logit'.") # Attributes to remember all this. - out = out.assign_attrs(sdba_transform=trans) - out = out.assign_attrs(sdba_transform_lower=lower_bound_array) + out = out.assign_attrs(xsdba_transform=trans) + out = out.assign_attrs(xsdba_transform_lower=lower_bound_array) if upper_bound is not None: - out = out.assign_attrs(sdba_transform_upper=upper_bound_array) + out = out.assign_attrs(xsdba_transform_upper=upper_bound_array) if "units" in out.attrs: - out = out.assign_attrs(sdba_transform_units=out.attrs.pop("units")) + out = out.assign_attrs(xsdba_transform_units=out.attrs.pop("units")) out = out.assign_attrs(units="") return out