From 79ee99ad85212fc13eb42fcb9591929e9b9cde9e Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Tue, 24 Dec 2024 13:07:54 -0500 Subject: [PATCH] Fix check to be more general --- jdaviz/configs/default/plugins/subset_tools/subset_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdaviz/configs/default/plugins/subset_tools/subset_tools.py b/jdaviz/configs/default/plugins/subset_tools/subset_tools.py index 888d68d0a3..74f64dbf71 100644 --- a/jdaviz/configs/default/plugins/subset_tools/subset_tools.py +++ b/jdaviz/configs/default/plugins/subset_tools/subset_tools.py @@ -241,7 +241,7 @@ 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): + if isinstance(subset_data.subset_state, MaskSubsetState): # Ignore MaskSubsetState here continue