Skip to content

Commit 2a6a633

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 261aadc commit 2a6a633

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

xarray/tests/test_computation.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,10 @@ def test_unified_dim_sizes() -> None:
475475
"x": 1,
476476
"y": 2,
477477
}
478-
assert (
479-
unified_dim_sizes(
480-
[xr.Variable(("x", "z"), [[1]]), xr.Variable(("y", "z"), [[1, 2], [3, 4]])],
481-
exclude_dims={"z"},
482-
)
483-
== {"x": 1, "y": 2}
484-
)
478+
assert unified_dim_sizes(
479+
[xr.Variable(("x", "z"), [[1]]), xr.Variable(("y", "z"), [[1, 2], [3, 4]])],
480+
exclude_dims={"z"},
481+
) == {"x": 1, "y": 2}
485482

486483
# duplicate dimensions
487484
with pytest.raises(ValueError):
@@ -1952,7 +1949,7 @@ def test_polyval_compat(use_dask, use_datetime) -> None:
19521949
xcoord = xr.DataArray(x, dims=("x",), name="x")
19531950

19541951
da = xr.DataArray(
1955-
np.stack((1.0 + x + 2.0 * x ** 2, 1.0 + 2.0 * x + 3.0 * x ** 2)),
1952+
np.stack((1.0 + x + 2.0 * x**2, 1.0 + 2.0 * x + 3.0 * x**2)),
19561953
dims=("d", "x"),
19571954
coords={"x": xcoord, "d": [0, 1]},
19581955
)
@@ -1989,12 +1986,12 @@ def test_polyval_compat(use_dask, use_datetime) -> None:
19891986
),
19901987
pytest.param(
19911988
xr.DataArray([1, 0, 0], dims="degree", coords={"degree": [2, 1, 0]}),
1992-
xr.DataArray([1, 2 ** 2, 3 ** 2], dims="x"),
1989+
xr.DataArray([1, 2**2, 3**2], dims="x"),
19931990
id="reordered-index",
19941991
),
19951992
pytest.param(
19961993
xr.DataArray([5], dims="degree", coords={"degree": [3]}),
1997-
xr.DataArray([5, 5 * 2 ** 3, 5 * 3 ** 3], dims="x"),
1994+
xr.DataArray([5, 5 * 2**3, 5 * 3**3], dims="x"),
19981995
id="sparse-index",
19991996
),
20001997
pytest.param(

0 commit comments

Comments
 (0)