From 6a18addd94e5df24f848da165f1eb85878651bfb Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Thu, 2 Nov 2023 20:48:58 -0400 Subject: [PATCH] Fix test --- jdaviz/configs/imviz/tests/test_linking.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jdaviz/configs/imviz/tests/test_linking.py b/jdaviz/configs/imviz/tests/test_linking.py index 3d1ac1c097..946ecb2ace 100644 --- a/jdaviz/configs/imviz/tests/test_linking.py +++ b/jdaviz/configs/imviz/tests/test_linking.py @@ -1,6 +1,7 @@ import pytest -from astropy.table import Table import astropy.units as u +from astropy.coordinates import SkyCoord +from astropy.table import Table from astropy.wcs import WCS from glue.core.link_helpers import LinkSame from glue.plugins.wcs_autolinking.wcs_autolinking import AffineLink, OffsetLink @@ -119,8 +120,8 @@ def test_wcslink_affine_with_extras(self): PolygonPixelRegion(vertices=PixCoord(x=[2, 3, 3], y=[2, 2, 3]))]) # Add markers. - tbl = Table({'x': (0, 0), 'y': (0, 1)}) - self.viewer.add_markers(tbl, marker_name='xy_markers') + tbl = Table({'coord': [SkyCoord(337.5203, -20.8333, unit="deg")]}) + self.viewer.add_markers(tbl, use_skycoord=True, marker_name='xy_markers') assert 'xy_markers' in self.imviz.app.data_collection.labels # linking shouldn't be possible now because astrowidgets creates a data entry