From 9b1a8bc587056ee0ae863ccdc487ac09347b39e4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 20:31:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/xsdba/adjustment.py | 7 +++---- src/xsdba/processing.py | 3 +-- src/xsdba/properties.py | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/xsdba/adjustment.py b/src/xsdba/adjustment.py index f64b64a..738f2f4 100644 --- a/src/xsdba/adjustment.py +++ b/src/xsdba/adjustment.py @@ -14,10 +14,6 @@ from scipy import stats from xarray.core.dataarray import DataArray -from xsdba.formatting import gen_call_string, update_history -from xsdba.options import OPTIONS, XSDBA_EXTRA_OUTPUT, set_options -from xsdba.units import convert_units_to - from xsdba._adjustment import ( dqm_adjust, dqm_train, @@ -35,7 +31,10 @@ scaling_train, ) from xsdba.base import Grouper, ParametrizableWithDataset, parse_group, uses_dask +from xsdba.formatting import gen_call_string, update_history +from xsdba.options import OPTIONS, XSDBA_EXTRA_OUTPUT, set_options from xsdba.processing import grouped_time_indexes +from xsdba.units import convert_units_to from xsdba.utils import ( ADDITIVE, best_pc_orientation_full, diff --git a/src/xsdba/processing.py b/src/xsdba/processing.py index 8ac79c9..e56c7af 100644 --- a/src/xsdba/processing.py +++ b/src/xsdba/processing.py @@ -14,10 +14,9 @@ import xarray as xr from xarray.core.utils import get_temp_dimname -from xsdba.formatting import update_xsdba_history - from xsdba._processing import _adapt_freq, _normalize, _reordering from xsdba.base import Grouper, parse_offset, uses_dask +from xsdba.formatting import update_xsdba_history from xsdba.nbutils import _escore from xsdba.units import convert_units_to, harmonize_units from xsdba.utils import ADDITIVE, copy_all_attrs diff --git a/src/xsdba/properties.py b/src/xsdba/properties.py index 3e73be1..0f26c9c 100644 --- a/src/xsdba/properties.py +++ b/src/xsdba/properties.py @@ -21,6 +21,8 @@ from xclim.indices.generic import compare, select_resample_op from xclim.indices.stats import fit, parametric_quantile +from xsdba.base import Grouper, map_groups, parse_group, parse_offset, uses_dask +from xsdba.nbutils import _pairwise_haversine_and_bins from xsdba.units import ( convert_units_to, infer_sampling_units, @@ -28,9 +30,6 @@ units, units2pint, ) - -from xsdba.base import Grouper, map_groups, parse_group, parse_offset, uses_dask -from xsdba.nbutils import _pairwise_haversine_and_bins from xsdba.utils import _pairwise_spearman, copy_all_attrs