From 4e1a6946a2f278183b82669e7d409c5f0fa1312a Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Tue, 24 Dec 2024 12:25:29 -0500 Subject: [PATCH] Fix failing test --- jdaviz/configs/default/plugins/subset_tools/subset_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdaviz/configs/default/plugins/subset_tools/subset_tools.py b/jdaviz/configs/default/plugins/subset_tools/subset_tools.py index 3326ce55c2..888d68d0a3 100644 --- a/jdaviz/configs/default/plugins/subset_tools/subset_tools.py +++ b/jdaviz/configs/default/plugins/subset_tools/subset_tools.py @@ -241,6 +241,10 @@ def get_regions(self, region_type=None, list_of_subset_labels=None, subset_data = lyr.layer subset_label = subset_data.label + if type(subset_data.subset_state) not in (RoiSubsetState, CompositeSubsetState): + # Ignore MaskSubsetState here + continue + try: if self.app.config == "imviz" and to_sky: region = roi_subset_state_to_region(subset_data.subset_state,