Skip to content

Commit

Permalink
Merge branch 'fix/skyCorrectFromSlit_reinit_params' into release/3.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenLabrie committed Apr 22, 2024
2 parents ce7d8ab + a0365e4 commit a313ebb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2998,7 +2998,8 @@ def recalc_fn(ad: AstroData, ui_parms: UIParameters):
plot_ratios=False,
enable_user_masking=False,
recalc_inputs_above=True,
ui_params=ui_params)
ui_params=ui_params,
reinit_live=True,)
geminidr.interactive.server.interactive_fitter(visualizer)

# Pull out the final parameters to use as inputs doing the real fit
Expand Down
7 changes: 7 additions & 0 deletions geminidr/interactive/fit/fit1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,7 @@ def __init__(
ui_params=None,
turbo_tabs=False,
panel_class=Fit1DPanel,
reinit_live=False,
**kwargs,
):
"""Initializes the Fit1DVisualizer and its parent class.
Expand Down Expand Up @@ -1632,6 +1633,11 @@ def __init__(
The class of Panel to use in each tab. This allows specific
operability for each primitive since most of the functions that do
the work are methods of this class.
reinit_live : bool
If True, some buttons and parameters will will recalculate the data
points immediately. If False, the reinit button will be disabled
until the user clicks the "Recalculate" button. Default is False.
"""
super().__init__(
title=title,
Expand All @@ -1640,6 +1646,7 @@ def __init__(
template=template,
help_text=help_text,
ui_params=ui_params,
reinit_live=reinit_live,
)
self.layout = None
self.recalc_inputs_above = recalc_inputs_above
Expand Down

0 comments on commit a313ebb

Please sign in to comment.