Skip to content

Commit 4b1d354

Browse files
committed
Add a better test for xarray dimension renaming
This commit adds a better test for renaming the dimensions of an xarray.DataArray, naming the dimensions meaningless strings like "Monday".
1 parent d68bc65 commit 4b1d354

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_image_conversion.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,13 @@ def test_index_image_converts_to_imglib_roi(ij):
560560
("t", "z", "y", "x", "c"),
561561
(5, 4, 6, 12, 3),
562562
),
563+
(
564+
get_xarr,
565+
"python",
566+
["foo", "bar", "a", "z", "monday"],
567+
("foo", "bar", "a", "z", "monday"),
568+
(5, 4, 6, 12, 3),
569+
),
563570
]
564571

565572

0 commit comments

Comments
 (0)