Skip to content

Commit caae886

Browse files
committed
Fix 3d vertices test
1 parent 57c0b35 commit caae886

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cf_xarray/tests/test_helpers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,21 @@ def test_bounds_to_vertices() -> None:
6767
],
6868
],
6969
dims=("extra", "lat", "bounds"),
70+
coords={
71+
"extra": [0, 1],
72+
"lat": [0, 1, 2, 3, 4],
73+
"bounds": [0, 1],
74+
},
7075
)
7176
expected_vertices_3d = xr.DataArray(
7277
[
7378
[50.0, 50.5, 51.0, 51.5, 52.0, 52.5],
7479
[60.0, 60.5, 61.0, 61.5, 62.0, 62.5],
7580
],
7681
dims=("extra", "lat_vertices"),
82+
coords={
83+
"extra": [0, 1],
84+
},
7785
)
7886
vertices_3d = cfxr.bounds_to_vertices(
7987
bounds_3d, bounds_dim="bounds", core_dims=["lat"]

0 commit comments

Comments
 (0)