From 6f0a5cfeadd02395f05ecce3f4587eb9f53fefd8 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Wed, 4 Dec 2024 14:58:41 +0000 Subject: [PATCH] Fix test affine WCS to avoid corner case with auto axis placement --- glue/viewers/image/tests/test_python_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue/viewers/image/tests/test_python_export.py b/glue/viewers/image/tests/test_python_export.py index e67e648be..4b7c86bfa 100644 --- a/glue/viewers/image/tests/test_python_export.py +++ b/glue/viewers/image/tests/test_python_export.py @@ -18,7 +18,7 @@ def setup_method(self, method): with NumpyRNGContext(12345): self.data = Data(cube=np.random.random((30, 50, 20))) # Create data versions with WCS and affine coordinates - matrix = np.array([[2, 3, 4, -1], [1, 2, 2, 2], [1, 1, 1, -2], [0, 0, 0, 1]]) + matrix = np.array([[2, 3, 0, -1], [1, 2, 0, 2], [0, 0, 1, -2], [0, 0, 0, 1]]) affine = AffineCoordinates(matrix, units=['Mm', 'Mm', 'km'], labels=['xw', 'yw', 'zw']) self.data_wcs = Data(label='cube', cube=self.data['cube'], coords=WCS(naxis=3))