Changeset c1b3ffb in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Oct 24, 2017 10:31:43 AM (7 years ago)
- Children:
- e4a3302
- Parents:
- f7b73d5
- Location:
- src/sas/qtgui/Perspectives/Corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
rf7b73d5 rc1b3ffb 116 116 117 117 def setupSlots(self): 118 self.extractBtn.clicked.connect(self.action)119 118 self.extrapolateBtn.clicked.connect(self.extrapolate) 120 119 self.transformBtn.clicked.connect(self.transform) … … 189 188 self._realplot.data = transform 190 189 self._realplot.drawRealSpace() 190 params = self._calculator.extract_parameters(transform) 191 self.avgCoreThick.setValue(params["d0"]) 192 self.avgHardBlock.setValue(params["Lc"]) 193 self.avgIntThick.setValue(params["dtr"]) 194 self.localCrystal.setValue(params["fill"]) 195 self.polydisp.setValue(params["A"]) 196 self.longPeriod.setValue(params["max"]) 191 197 192 198 self._calculator.compute_transform(extrap, method, bg, completefn, updatefn) -
src/sas/qtgui/Perspectives/Corfunc/UI/CorfuncPanel.ui
rf7b73d5 rc1b3ffb 16 16 <layout class="QGridLayout" name="gridLayout"> 17 17 <item row="1" column="0"> 18 <layout class="QVBoxLayout" name="verticalLayout_7" stretch="1,0,0 ">18 <layout class="QVBoxLayout" name="verticalLayout_7" stretch="1,0,0,0,0,0,0"> 19 19 <item> 20 20 <spacer name="verticalSpacer"> … … 167 167 </item> 168 168 <item> 169 <widget class="QFrame" name="frame"> 170 <property name="frameShape"> 171 <enum>QFrame::StyledPanel</enum> 172 </property> 173 <property name="frameShadow"> 174 <enum>QFrame::Raised</enum> 175 </property> 176 <property name="lineWidth"> 177 <number>5</number> 178 </property> 179 </widget> 180 </item> 181 <item> 182 <widget class="Line" name="line"> 183 <property name="orientation"> 184 <enum>Qt::Horizontal</enum> 185 </property> 186 </widget> 187 </item> 188 <item> 189 <layout class="QGridLayout" name="gridLayout_2"> 190 <item row="0" column="1"> 191 <widget class="QLabel" name="label_14"> 192 <property name="text"> 193 <string>Long Period</string> 194 </property> 195 </widget> 196 </item> 197 <item row="0" column="2"> 198 <widget class="QDoubleSpinBox" name="avgIntThick"/> 199 </item> 200 <item row="0" column="3"> 201 <widget class="QLabel" name="label_15"> 202 <property name="text"> 203 <string>Average Interface Thickness</string> 204 </property> 205 </widget> 206 </item> 207 <item row="1" column="0"> 208 <widget class="QDoubleSpinBox" name="avgHardBlock"/> 209 </item> 210 <item row="1" column="1"> 211 <widget class="QLabel" name="label_16"> 212 <property name="text"> 213 <string>Average Hard Block Thickness</string> 214 </property> 215 </widget> 216 </item> 217 <item row="1" column="2"> 218 <widget class="QDoubleSpinBox" name="avgCoreThick"/> 219 </item> 220 <item row="1" column="3"> 221 <widget class="QLabel" name="label_17"> 222 <property name="text"> 223 <string>Average Core Thickness</string> 224 </property> 225 </widget> 226 </item> 227 <item row="2" column="0"> 228 <widget class="QDoubleSpinBox" name="polydisp"/> 229 </item> 230 <item row="2" column="1"> 231 <widget class="QLabel" name="label_18"> 232 <property name="text"> 233 <string>Polydispersity</string> 234 </property> 235 </widget> 236 </item> 237 <item row="2" column="2"> 238 <widget class="QDoubleSpinBox" name="localCrystal"/> 239 </item> 240 <item row="2" column="3"> 241 <widget class="QLabel" name="label_19"> 242 <property name="text"> 243 <string>Local Crystallinity</string> 244 </property> 245 </widget> 246 </item> 247 <item row="0" column="0"> 248 <widget class="QDoubleSpinBox" name="longPeriod"/> 249 </item> 250 </layout> 251 </item> 252 <item> 253 <widget class="Line" name="line_2"> 254 <property name="orientation"> 255 <enum>Qt::Horizontal</enum> 256 </property> 257 </widget> 258 </item> 259 <item> 169 260 <layout class="QHBoxLayout" name="horizontalLayout_3"> 170 261 <item> 171 <layout class="QVBoxLayout" name="verticalLayout_2" stretch=" 1,1,1">262 <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1"> 172 263 <item alignment="Qt::AlignHCenter"> 173 264 <widget class="QLabel" name="label_5"> … … 178 269 </item> 179 270 <item> 180 <widget class="QRadioButton" name="fourierBtn"> 181 <property name="text"> 182 <string>Fourier</string> 183 </property> 184 <property name="checked"> 185 <bool>true</bool> 186 </property> 187 </widget> 188 </item> 189 <item> 190 <widget class="QRadioButton" name="hilbertBtn"> 191 <property name="text"> 192 <string>Hilbert</string> 193 </property> 194 </widget> 271 <layout class="QHBoxLayout" name="horizontalLayout_4"> 272 <item> 273 <widget class="QRadioButton" name="hilbertBtn"> 274 <property name="text"> 275 <string>Hilbert</string> 276 </property> 277 </widget> 278 </item> 279 <item> 280 <widget class="QRadioButton" name="fourierBtn"> 281 <property name="text"> 282 <string>Fourier</string> 283 </property> 284 <property name="checked"> 285 <bool>true</bool> 286 </property> 287 </widget> 288 </item> 289 </layout> 195 290 </item> 196 291 </layout> … … 287 382 </item> 288 383 <item> 289 <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0 ,0">384 <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0"> 290 385 <item> 291 386 <widget class="QPushButton" name="extrapolateBtn"> … … 299 394 <property name="text"> 300 395 <string>Transform</string> 301 </property>302 </widget>303 </item>304 <item>305 <widget class="QPushButton" name="extractBtn">306 <property name="text">307 <string>Extract</string>308 396 </property> 309 397 </widget>
Note: See TracChangeset
for help on using the changeset viewer.