Changeset 6930b91 in sasview
- Timestamp:
- Oct 25, 2017 5:28:10 AM (7 years ago)
- Children:
- 7d6dd6f
- Parents:
- a3c4217
- Location:
- src/sas/qtgui/Perspectives/Corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
ra3c4217 r6930b91 189 189 def transform(self): 190 190 """Calculate the real space version of the extrapolation.""" 191 if self.fourierBtn.isChecked(): 192 method = "fourier" 193 elif self.hilbertBtn.isChecked(): 194 method = "hilbert" 191 method = str(self.model.item(W.W_TRANSFORM).text()).lower() 195 192 196 193 extrap = self._canvas.extrap … … 233 230 self.mapper.addMapping(self.qMax2, W.W_QCUTOFF) 234 231 self.mapper.addMapping(self.bg, W.W_BACKGROUND) 232 self.mapper.addMapping(self.transformCombo, W.W_TRANSFORM) 235 233 236 234 self.mapper.addMapping(self.guinierA, W.W_GUINIERA) -
src/sas/qtgui/Perspectives/Corfunc/UI/CorfuncPanel.ui
rc1b3ffb r6930b91 136 136 </layout> 137 137 </item> 138 <item>139 <layout class="QVBoxLayout" name="verticalLayout_5">140 <item alignment="Qt::AlignHCenter">141 <widget class="QLabel" name="label_12">142 <property name="text">143 <string>Background</string>144 </property>145 </widget>146 </item>147 <item>148 <widget class="QDoubleSpinBox" name="bg">149 <property name="readOnly">150 <bool>true</bool>151 </property>152 <property name="decimals">153 <number>4</number>154 </property>155 </widget>156 </item>157 <item>158 <widget class="QPushButton" name="calculateBgBtn">159 <property name="text">160 <string>Calculate Background</string>161 </property>162 </widget>163 </item>164 </layout>165 </item>166 138 </layout> 167 139 </item> … … 259 231 <item> 260 232 <layout class="QHBoxLayout" name="horizontalLayout_3"> 261 <item>262 <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1">263 <item alignment="Qt::AlignHCenter">264 <widget class="QLabel" name="label_5">265 <property name="text">266 <string>Transform Type</string>267 </property>268 </widget>269 </item>270 <item>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>290 </item>291 </layout>292 </item>293 233 <item> 294 234 <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1"> … … 296 236 <widget class="QLabel" name="label_3"> 297 237 <property name="text"> 298 <string> Q Range</string>238 <string>Controls</string> 299 239 </property> 300 240 </widget> 301 241 </item> 302 242 <item> 303 <layout class="Q FormLayout" name="formLayout">243 <layout class="QGridLayout" name="gridLayout_3"> 304 244 <property name="sizeConstraint"> 305 245 <enum>QLayout::SetMinimumSize</enum> 306 246 </property> 307 <property name="fieldGrowthPolicy"> 308 <enum>QFormLayout::FieldsStayAtSizeHint</enum> 309 </property> 247 <item row="1" column="3"> 248 <widget class="QLabel" name="label_12"> 249 <property name="text"> 250 <string>Background</string> 251 </property> 252 </widget> 253 </item> 310 254 <item row="0" column="0"> 311 255 <widget class="QDoubleSpinBox" name="qMin"> … … 348 292 </widget> 349 293 </item> 294 <item row="0" column="3"> 295 <widget class="QLabel" name="label_5"> 296 <property name="text"> 297 <string>Transform Type</string> 298 </property> 299 </widget> 300 </item> 301 <item row="2" column="1"> 302 <widget class="QLabel" name="label_4"> 303 <property name="text"> 304 <string>Cutoff</string> 305 </property> 306 </widget> 307 </item> 308 <item row="0" column="2"> 309 <widget class="QComboBox" name="transformCombo"> 310 <item> 311 <property name="text"> 312 <string>Fourier</string> 313 </property> 314 </item> 315 </widget> 316 </item> 317 <item row="1" column="2"> 318 <widget class="QDoubleSpinBox" name="bg"> 319 <property name="readOnly"> 320 <bool>true</bool> 321 </property> 322 <property name="decimals"> 323 <number>4</number> 324 </property> 325 </widget> 326 </item> 350 327 <item row="2" column="0"> 351 328 <widget class="QDoubleSpinBox" name="qMax2"> … … 361 338 </widget> 362 339 </item> 363 <item row="2" column="1"> 364 <widget class="QLabel" name="label_4"> 365 <property name="text"> 366 <string>Cutoff</string> 367 </property> 368 </widget> 369 </item> 370 </layout> 371 </item> 372 </layout> 373 </item> 374 <item> 375 <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,1"> 376 <item alignment="Qt::AlignHCenter"> 377 <widget class="QLabel" name="label_13"> 378 <property name="text"> 379 <string>Controls</string> 380 </property> 381 </widget> 382 </item> 383 <item> 384 <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0"> 385 <item> 340 <item row="2" column="2" colspan="2"> 341 <widget class="QPushButton" name="calculateBgBtn"> 342 <property name="text"> 343 <string>Calculate Background</string> 344 </property> 345 </widget> 346 </item> 347 <item row="0" column="4"> 386 348 <widget class="QPushButton" name="extrapolateBtn"> 387 349 <property name="text"> … … 390 352 </widget> 391 353 </item> 392 <item >354 <item row="1" column="4"> 393 355 <widget class="QPushButton" name="transformBtn"> 394 356 <property name="text">
Note: See TracChangeset
for help on using the changeset viewer.