Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Nov 3, 2023
1 parent baa3ce1 commit 6a18add
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jdaviz/configs/imviz/tests/test_linking.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6a18add

Please sign in to comment.