From b64275946b3bf7f4aea715ce40bc7040c8f4fcf2 Mon Sep 17 00:00:00 2001 From: dehoni Date: Sat, 28 Oct 2023 20:59:46 +0100 Subject: [PATCH] live update slicer on change of parameter --- src/sas/qtgui/Perspectives/Inversion/InversionWidget.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sas/qtgui/Perspectives/Inversion/InversionWidget.py b/src/sas/qtgui/Perspectives/Inversion/InversionWidget.py index 62a4ec9f77..25f0ef2aa9 100644 --- a/src/sas/qtgui/Perspectives/Inversion/InversionWidget.py +++ b/src/sas/qtgui/Perspectives/Inversion/InversionWidget.py @@ -233,6 +233,10 @@ def setupLinks(self): lambda: self._calculator.set_alpha(is_float(self.regularizationConstantInput.text()))) self.maxDistanceInput.textChanged.connect( lambda: self._calculator.set_dmax(is_float(self.maxDistanceInput.text()))) + + self.noOfSlicesInput.editingFinished.connect(self.updateSlicerParams) + self.startAngleInput.editingFinished.connect(self.updateSlicerParams) + self.noOfQbinsInput.editingFinished.connect(self.updateSlicerParams) # Signals asking for replot self.maxQInput.editingFinished.connect(self.check_q_high) @@ -478,12 +482,7 @@ def updateTab(self, data = None, is2D=False, tab_index=None): self.plot2D.id=self.logic.data.name self.plot2D.onSectorView() self.updateSlicerParams() - - #self.plot2D.onSectorView() - # - #self.setSlicerParams() - else: #1D data self.logic.add_errors() self.setQ()