Changeset 7b536da in sasview
- Timestamp:
- Oct 24, 2017 8:11:52 AM (7 years ago)
- Children:
- 22e6043
- Parents:
- b2c8aef
- Location:
- src/sas/qtgui/Perspectives/Corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
rb2c8aef r7b536da 47 47 def setupSlots(self): 48 48 self.extractBtn.clicked.connect(self.action) 49 self.extrapolateBtn.clicked.connect(self. action)49 self.extrapolateBtn.clicked.connect(self.extrapolate) 50 50 self.transformBtn.clicked.connect(self.action) 51 51 … … 84 84 elif item.row() == W.W_BACKGROUND: 85 85 value = float(self.model.item(W.W_BACKGROUND).text()) 86 self.bg.setValue(float(value)) 86 self.bg.setValue(value) 87 self._calculator.background = value 87 88 else: 88 89 print("{} Changed".format(item)) 90 91 92 def extrapolate(self): 93 params, extrapolation = self._calculator.compute_extrapolation() 94 self.guinierA.setValue(params['A']) 95 self.guinierB.setValue(params['B']) 96 self.porodK.setValue(params['K']) 97 self.porodSigma.setValue(params['sigma']) 98 print(params) 99 89 100 90 101 -
src/sas/qtgui/Perspectives/Corfunc/UI/CorfuncPanel.ui
rb2c8aef r7b536da 133 133 <property name="geometry"> 134 134 <rect> 135 <x> 350</x>136 <y>3 50</y>137 <width> 334</width>135 <x>270</x> 136 <y>320</y> 137 <width>453</width> 138 138 <height>81</height> 139 139 </rect> … … 156 156 <bool>true</bool> 157 157 </property> 158 <property name="decimals"> 159 <number>7</number> 160 </property> 158 161 </widget> 159 162 </item> … … 169 172 <property name="readOnly"> 170 173 <bool>true</bool> 174 </property> 175 <property name="decimals"> 176 <number>7</number> 177 </property> 178 <property name="minimum"> 179 <double>-1000000.000000000000000</double> 180 </property> 181 <property name="maximum"> 182 <double>1000000.000000000000000</double> 171 183 </property> 172 184 </widget> … … 199 211 <bool>true</bool> 200 212 </property> 213 <property name="decimals"> 214 <number>7</number> 215 </property> 201 216 </widget> 202 217 </item> … … 212 227 <property name="readOnly"> 213 228 <bool>true</bool> 229 </property> 230 <property name="decimals"> 231 <number>7</number> 214 232 </property> 215 233 </widget>
Note: See TracChangeset
for help on using the changeset viewer.