Skip to content

Commit

Permalink
Add reinit_live kwarg to Fit1DVisualizer
Browse files Browse the repository at this point in the history
Otherwise, certain values that should be reinitialized are not
reinitialized.
  • Loading branch information
teald committed Apr 11, 2024
1 parent 85ed49a commit c95cb9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geminidr/interactive/fit/fit1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,7 @@ def __init__(
ui_params=None,
turbo_tabs=False,
panel_class=Fit1DPanel,
reinit_live=True,
**kwargs,
):
"""Initializes the Fit1DVisualizer and its parent class.
Expand Down Expand Up @@ -1613,6 +1614,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.
"""
super().__init__(
title=title,
Expand All @@ -1621,6 +1627,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 c95cb9e

Please sign in to comment.