Skip to content

Commit

Permalink
Update options_panel_widgets.py
Browse files Browse the repository at this point in the history
Enable/Disable wavelet levels input box accordingly
  • Loading branch information
tsikes committed Jul 5, 2021
1 parent cf67025 commit 4e113be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/options_panel_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,11 @@ def update(self, event=None, shock=None):
if sender in [parent.unc_shading_box, parent.wavelet_levels_box]:
parent.plot.signal.unc_shading = parent.unc_shading_box.currentText()
parent.plot.signal.wavelet_levels = parent.wavelet_levels_box.value()
if parent.plot.signal.unc_shading != 'Smoothed Signal':
parent.wavelet_levels_box.setEnabled(False)
else:
parent.wavelet_levels_box.setEnabled(True)

parent.plot.signal.update_uncertainty_shading()

if sender in self.boxes['unc_cutoff']:
Expand Down

0 comments on commit 4e113be

Please sign in to comment.