File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
glue/plugins/wcs_autolinking Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import copy
2
2
3
- from astropy .wcs import WCS
4
3
from astropy .wcs .utils import pixel_to_pixel
5
- from astropy .wcs .wcsapi import SlicedLowLevelWCS , HighLevelWCSWrapper
4
+ from astropy .wcs .wcsapi import BaseHighLevelWCS , SlicedLowLevelWCS , HighLevelWCSWrapper
6
5
from glue .config import autolinker , link_helper
7
6
from glue .core .link_helpers import MultiLink
8
7
@@ -183,7 +182,7 @@ def wcs_autolink(data_collection):
183
182
184
183
# Find subset of datasets with WCS coordinates
185
184
wcs_datasets = [data for data in data_collection
186
- if hasattr (data , 'coords' ) and isinstance (data .coords , WCS )]
185
+ if hasattr (data , 'coords' ) and isinstance (data .coords , BaseHighLevelWCS )]
187
186
188
187
# Only continue if there are at least two such datasets
189
188
if len (wcs_datasets ) < 2 :
You can’t perform that action at this time.
0 commit comments