From 4b1d35493fd4e41d14c66a533f3062667569d3e2 Mon Sep 17 00:00:00 2001 From: Edward Evans Date: Thu, 19 Dec 2024 15:16:56 -0600 Subject: [PATCH] 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". --- tests/test_image_conversion.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_image_conversion.py b/tests/test_image_conversion.py index 07d8ace6..664e1b10 100644 --- a/tests/test_image_conversion.py +++ b/tests/test_image_conversion.py @@ -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), + ), ]