Skip to content

Commit

Permalink
enable remove background toggle in CIS mode (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
rboston628 authored Nov 13, 2024
1 parent b721a42 commit 3dba8cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/snapred/ui/view/DiffCalRequestView.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from snapred.meta.Config import Config
from snapred.meta.decorators.Resettable import Resettable
from snapred.meta.mantid.AllowedPeakTypes import SymmetricPeakEnum
from snapred.ui.view.BackendRequestView import BackendRequestView
Expand Down Expand Up @@ -34,9 +35,9 @@ def __init__(self, samples=[], groups=[], parent=None):
self.peakFunctionDropdown = self._sampleDropDown("Peak Function", [p.value for p in SymmetricPeakEnum])

# checkbox for removing background
# NOTE not enabled until remove event background is fixed
# NOTE not enabled unless in CIS mode until remove event background is fixed -- then re-enable
self.removeBackgroundToggle = self._labeledField("RemoveBackground", Toggle(parent=self, state=False))
self.removeBackgroundToggle.setEnabled(False)
self.removeBackgroundToggle.setEnabled(Config["cis_mode"])

# set field properties
self.litemodeToggle.setEnabled(True)
Expand Down

0 comments on commit 3dba8cf

Please sign in to comment.