Skip to content

Commit

Permalink
more spectral extraction improvements for downstream use (#3227)
Browse files Browse the repository at this point in the history
* only show function dropdown if multiple choices
* improve styling of photutils docs link when plugin is wide
* don't show warning if spectrum_y_units is not even defined
  • Loading branch information
kecnry authored Jan 22, 2025
1 parent 5c6ac10 commit 8186787
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,17 @@
api_hint="plg.aperture_method ="
:api_hints_enabled="api_hints_enabled"
:hint="'Extract '+resulting_product_name+' using an aperture masking method in place of the subset mask.'"
>
/>
<v-row>
<j-docs-link>
See the <j-external-link link='https://photutils.readthedocs.io/en/stable/aperture.html#aperture-and-pixel-overlap'
linktext='photutils docs'></j-external-link>
for more details on aperture masking methods.
See the <j-external-link link='https://photutils.readthedocs.io/en/stable/aperture.html#aperture-and-pixel-overlap'
linktext='photutils docs'></j-external-link> for more details on aperture masking methods.
</j-docs-link>
</plugin-select>
</v-row>
</div>

<plugin-select
v-if="function_items.length > 1"
:items="function_items.map(i => i.label)"
:selected.sync="function_selected"
label="Function"
Expand Down Expand Up @@ -258,7 +259,7 @@
@click:action="spectral_extraction"
>
<v-alert
v-if="results_units !== spectrum_y_units"
v-if="spectrum_y_units && results_units !== spectrum_y_units"
type='warning'
style="margin-left: -12px; margin-right: -12px"
>
Expand Down

0 comments on commit 8186787

Please sign in to comment.