From d6fce9b90aa2903e9997ea21f54b248ad5775fb0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:59:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_sdba/test_loess.py | 52 +++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/tests/test_sdba/test_loess.py b/tests/test_sdba/test_loess.py index 99281b740..cb50f388b 100644 --- a/tests/test_sdba/test_loess.py +++ b/tests/test_sdba/test_loess.py @@ -1,7 +1,5 @@ from __future__ import annotations -import logging - import numpy as np import pandas as pd import pytest @@ -77,17 +75,49 @@ def test_loess_smoothing_nan(use_dask): # (random array taken from np.random.randn) data = np.array( [ - -0.993, -0.980, -0.452, -0.076, 0.447, - 0.389, 2.408, 0.966, -0.793, 0.090, - -0.173, 1.713, -1.579, 0.454, -0.272, - -0.005, -0.926, -2.022, -1.661, -0.493, - -0.643, 0.891, 0.194, 0.086, 0.983, - -1.048, 2.032, 1.174, -0.441, -0.204, - -1.126, 0.933, 1.987, 0.638, 0.789, - 0.767, 0.676, -1.028, 1.422, 0.453, + -0.993, + -0.980, + -0.452, + -0.076, + 0.447, + 0.389, + 2.408, + 0.966, + -0.793, + 0.090, + -0.173, + 1.713, + -1.579, + 0.454, + -0.272, + -0.005, + -0.926, + -2.022, + -1.661, + -0.493, + -0.643, + 0.891, + 0.194, + 0.086, + 0.983, + -1.048, + 2.032, + 1.174, + -0.441, + -0.204, + -1.126, + 0.933, + 1.987, + 0.638, + 0.789, + 0.767, + 0.676, + -1.028, + 1.422, + 0.453, ] ) - data = data.reshape(2,2,10) + data = data.reshape(2, 2, 10) data[0, 0] = [np.nan] * 10 da = xr.DataArray( data,