@@ -475,13 +475,10 @@ def test_unified_dim_sizes() -> None:
475
475
"x" : 1 ,
476
476
"y" : 2 ,
477
477
}
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 }
485
482
486
483
# duplicate dimensions
487
484
with pytest .raises (ValueError ):
@@ -1952,7 +1949,7 @@ def test_polyval_compat(use_dask, use_datetime) -> None:
1952
1949
xcoord = xr .DataArray (x , dims = ("x" ,), name = "x" )
1953
1950
1954
1951
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 )),
1956
1953
dims = ("d" , "x" ),
1957
1954
coords = {"x" : xcoord , "d" : [0 , 1 ]},
1958
1955
)
@@ -1989,12 +1986,12 @@ def test_polyval_compat(use_dask, use_datetime) -> None:
1989
1986
),
1990
1987
pytest .param (
1991
1988
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" ),
1993
1990
id = "reordered-index" ,
1994
1991
),
1995
1992
pytest .param (
1996
1993
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" ),
1998
1995
id = "sparse-index" ,
1999
1996
),
2000
1997
pytest .param (
0 commit comments