Skip to content

Commit

Permalink
Fix test affine WCS to avoid corner case with auto axis placement
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Dec 4, 2024
1 parent fc5e9ed commit 6f0a5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue/viewers/image/tests/test_python_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6f0a5cf

Please sign in to comment.