Skip to content

Commit

Permalink
remove new traitlet in ap_phot
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Sep 18, 2024
1 parent 7cad3f2 commit bc75ff7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
persistent-hint
/>
</v-row>
<v-row v-if="(!multiselect || !pixel_area_multi_auto) && !disable_pixarea_input">
<v-row v-if="(!multiselect || !pixel_area_multi_auto) && display_solid_angle_unit!='pix2'">

<v-text-field
label="Pixel area"
Expand Down

0 comments on commit bc75ff7

Please sign in to comment.