Skip to content

Commit 8078ebd

Browse files
authored
Merge branch 'main' into optimize-add-bounds
2 parents f466765 + 5d05556 commit 8078ebd

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

cf_xarray/accessor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,10 +1814,6 @@ def _rewrite_values(
18141814
for k, v in value.items()
18151815
)
18161816
)
1817-
1818-
elif value is Ellipsis:
1819-
pass
1820-
18211817
else:
18221818
# things like sum which have dim
18231819
newvalue = [

cf_xarray/tests/test_accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,15 +899,15 @@ def test_add_bounds_nd_variable() -> None:
899899

900900
# 2D
901901
expected = (
902-
vertices_to_bounds( # type: ignore[misc]
902+
vertices_to_bounds(
903903
xr.DataArray(
904904
np.arange(0, 13, 3).reshape(5, 1) + np.arange(-2, 2).reshape(1, 4),
905905
dims=("x", "y"),
906906
),
907907
out_dims=("bounds", "x", "y"),
908908
)
909909
.rename("z_bounds")
910-
.assign_coords(**ds.coords)
910+
.assign_coords(**ds.coords) # type: ignore[arg-type]
911911
)
912912
actual = ds.cf.add_bounds("z").z_bounds.reset_coords(drop=True)
913913
xr.testing.assert_identical(actual, expected)

0 commit comments

Comments
 (0)