Skip to content

Commit

Permalink
live update slicer on change of parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dehoni committed Oct 28, 2023
1 parent 0a51118 commit b642759
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/sas/qtgui/Perspectives/Inversion/InversionWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b642759

Please sign in to comment.