Skip to content

Commit

Permalink
generalize some internal traitlet names
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jul 10, 2024
1 parent 32f12ee commit ebbed5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SpectralExtraction(PluginTemplateMixin, ApertureSubsetSelectMixin,
function_items = List().tag(sync=True)
function_selected = Unicode('Sum').tag(sync=True)
filename = Unicode().tag(sync=True)
extracted_spec_available = Bool(False).tag(sync=True)
extracted_available = Bool(False).tag(sync=True)
overwrite_warn = Bool(False).tag(sync=True)

aperture_method_items = List().tag(sync=True)
Expand Down Expand Up @@ -502,7 +502,7 @@ def extract(self, return_bg=False, add_data=True, **kwargs):

# stuff for exporting to file
self.extracted_spec = spec
self.extracted_spec_available = True
self.extracted_available = True
fname_label = self.dataset_selected.replace("[", "_").replace("]", "")
self.filename = f"extracted_{selected_func}_{fname_label}.fits"

Expand Down Expand Up @@ -634,8 +634,8 @@ def marks(self):
sv = self.slice_indicator_viewers[0]
marks = {'ext': PluginLine(sv, visible=self.is_active),
'bg_ext': PluginLine(sv,
line_style='dotted',
visible=self.is_active and self.active_step == 'bg')}
line_style='dotted',
visible=self.is_active and self.active_step == 'bg')}
sv.figure.marks = sv.figure.marks + [marks['ext'], marks['bg_ext']]
return marks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@
@click:action="spectral_extraction"
></plugin-add-results>

<j-plugin-section-header v-if="extracted_spec_available && export_enabled">Results</j-plugin-section-header>
<j-plugin-section-header v-if="extracted_available && export_enabled">Results</j-plugin-section-header>

<div style="display: grid; position: relative"> <!-- overlay container -->
<div style="grid-area: 1/1">
<div v-if="extracted_spec_available && export_enabled">
<div v-if="extracted_available && export_enabled">

<v-row>
<v-text-field
Expand Down

0 comments on commit ebbed5d

Please sign in to comment.