From bc75ff753444f043caae08a884dfadb15d5e413a Mon Sep 17 00:00:00 2001 From: Clare Shanahan Date: Wed, 18 Sep 2024 12:40:41 -0400 Subject: [PATCH] remove new traitlet in ap_phot --- .../configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py | 2 -- .../configs/imviz/plugins/aper_phot_simple/aper_phot_simple.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py index cda5eb3719..a98dbf851b 100644 --- a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py +++ b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py @@ -83,7 +83,6 @@ class SimpleAperturePhotometry(PluginTemplateMixin, ApertureSubsetSelectMixin, # traitlet to avoid avoid repetition of seperating it out from `display_unit` flux_scaling_display_unit = Unicode("").tag(sync=True) - disable_pixarea_input = Bool(False).tag(sync=True) # if flux/pix2 def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -270,7 +269,6 @@ def _set_display_unit_of_selected_dataset(self): # if cube loaded is per-pixel-squared sb (i.e flux cube loaded) # pixel_area should be fixed to 1 if self.display_solid_angle_unit == 'pix2': - self.disable_pixarea_input = True self.pixel_area = 1.0 def _get_defaults_from_metadata(self, dataset=None): diff --git a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.vue b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.vue index 7bf41faf3a..1041ab1768 100644 --- a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.vue +++ b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.vue @@ -95,7 +95,7 @@ persistent-hint /> - +