Skip to content

Commit

Permalink
Add a better test for xarray dimension renaming
Browse files Browse the repository at this point in the history
This commit adds a better test for renaming the dimensions of an
xarray.DataArray, naming the dimensions meaningless strings like
"Monday".
  • Loading branch information
elevans committed Dec 19, 2024
1 parent d68bc65 commit 4b1d354
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_image_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,13 @@ def test_index_image_converts_to_imglib_roi(ij):
("t", "z", "y", "x", "c"),
(5, 4, 6, 12, 3),
),
(
get_xarr,
"python",
["foo", "bar", "a", "z", "monday"],
("foo", "bar", "a", "z", "monday"),
(5, 4, 6, 12, 3),
),
]


Expand Down

0 comments on commit 4b1d354

Please sign in to comment.