Changeset 9634f86 in sasview for src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
re4a3302 r9634f86 120 120 self.calculateBgBtn.clicked.connect(self.calculateBackground) 121 121 122 self.hilbertBtn.clicked.connect(self.action)123 self.fourierBtn.clicked.connect(self.action)124 125 122 self.model.itemChanged.connect(self.modelChanged) 126 123 … … 144 141 self.model.setItem(W.W_PORODSIGMA, 145 142 QtGui.QStandardItem("0.0")) 143 self.model.setItem(W.W_CORETHICK, QtGui.QStandardItem(str(0))) 144 self.model.setItem(W.W_INTTHICK, QtGui.QStandardItem(str(0))) 145 self.model.setItem(W.W_HARDBLOCK, QtGui.QStandardItem(str(0))) 146 self.model.setItem(W.W_CRYSTAL, QtGui.QStandardItem(str(0))) 147 self.model.setItem(W.W_POLY, QtGui.QStandardItem(str(0))) 148 self.model.setItem(W.W_PERIOD, QtGui.QStandardItem(str(0))) 146 149 147 150 def modelChanged(self, item): … … 195 198 self._realplot.drawRealSpace() 196 199 params = self._calculator.extract_parameters(transform) 197 self. avgCoreThick.setValue(params["d0"])198 self. avgHardBlock.setValue(params["Lc"])199 self. avgIntThick.setValue(params["dtr"])200 self. localCrystal.setValue(params["fill"])201 self. polydisp.setValue(params["A"])202 self. longPeriod.setValue(params["max"])200 self.model.setItem(W.W_CORETHICK, QtGui.QStandardItem(str(params['d0']))) 201 self.model.setItem(W.W_INTTHICK, QtGui.QStandardItem(str(params['dtr']))) 202 self.model.setItem(W.W_HARDBLOCK, QtGui.QStandardItem(str(params['Lc']))) 203 self.model.setItem(W.W_CRYSTAL, QtGui.QStandardItem(str(params['fill']))) 204 self.model.setItem(W.W_POLY, QtGui.QStandardItem(str(params['A']))) 205 self.model.setItem(W.W_PERIOD, QtGui.QStandardItem(str(params['max']))) 203 206 204 207 self._calculator.compute_transform(extrap, method, bg, completefn, updatefn) … … 220 223 self.mapper.addMapping(self.porodSigma, W.W_PORODSIGMA) 221 224 225 self.mapper.addMapping(self.avgCoreThick, W.W_CORETHICK) 226 self.mapper.addMapping(self.avgIntThick, W.W_INTTHICK) 227 self.mapper.addMapping(self.avgHardBlock, W.W_HARDBLOCK) 228 self.mapper.addMapping(self.polydisp, W.W_POLY) 229 self.mapper.addMapping(self.longPeriod, W.W_PERIOD) 230 self.mapper.addMapping(self.localCrystal, W.W_CRYSTAL) 231 222 232 self.mapper.toFirst() 223 233 … … 226 236 temp = QtGui.QStandardItem(str(bg)) 227 237 self.model.setItem(W.W_BACKGROUND, temp) 228 229 def action(self):230 print("Called an action!")231 print(self.model)232 print(self.mapper)233 238 234 239 def allowBatch(self):
Note: See TracChangeset
for help on using the changeset viewer.