- Timestamp:
- Dec 4, 2017 8:43:06 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 9387fe3
- Parents:
- 200bd7e
- Location:
- src/sas/qtgui
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/GUITests.py
r0261bc1 r50bfab0 59 59 from Perspectives.Invariant.UnitTesting import InvariantPerspectiveTest 60 60 from Perspectives.Invariant.UnitTesting import InvariantDetailsTest 61 # Inversion 62 from Perspectives.Inversion.UnitTesting import InversionPerspectiveTest 61 63 62 64 … … 115 117 unittest.makeSuite(InvariantPerspectiveTest.InvariantPerspectiveTest, 'test'), 116 118 unittest.makeSuite(InvariantDetailsTest.InvariantDetailsTest, 'test'), 119 # Inversion 120 unittest.makeSuite(InversionPerspectiveTest.InversionTest, 'test'), 117 121 ) 118 122 return unittest.TestSuite(suites) -
src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py
rcb4d219 r50bfab0 368 368 self.setClosable(value=False) 369 369 # Tell the MdiArea to close the container 370 self.parentWidget().close() 370 if self.parent: 371 self.parentWidget().close() 371 372 event.accept() 372 373 else: -
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
r6cb305a r50bfab0 63 63 self._model_item = QtGui.QStandardItem() 64 64 65 self._helpView = QtWebKit.QWebView()65 #self._helpView = QtWebKit.QWebView() 66 66 self.detailsDialog = DetailsDialog(self) 67 67 self.detailsDialog.cmdOK.clicked.connect(self.enabling) -
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
r19fce84 r50bfab0 25 25 return 0.0 26 26 27 NUMBER_OF_TERMS = 10 28 REGULARIZATION = 0.0001 29 BACKGROUND_INPUT = 0.0 30 MAX_DIST = 140.0 27 31 28 32 # TODO: Modify plot references, don't just send new … … 227 231 item = QtGui.QStandardItem("") 228 232 self.model.setItem(WIDGETS.W_FILENAME, item) 229 item = QtGui.QStandardItem( '0.0')233 item = QtGui.QStandardItem(str(BACKGROUND_INPUT)) 230 234 self.model.setItem(WIDGETS.W_BACKGROUND_INPUT, item) 231 235 item = QtGui.QStandardItem("") … … 237 241 item = QtGui.QStandardItem("") 238 242 self.model.setItem(WIDGETS.W_SLIT_HEIGHT, item) 239 item = QtGui.QStandardItem( "10")243 item = QtGui.QStandardItem(str(NUMBER_OF_TERMS)) 240 244 self.model.setItem(WIDGETS.W_NO_TERMS, item) 241 item = QtGui.QStandardItem( "0.0001")245 item = QtGui.QStandardItem(str(REGULARIZATION)) 242 246 self.model.setItem(WIDGETS.W_REGULARIZATION, item) 243 item = QtGui.QStandardItem( "140.0")247 item = QtGui.QStandardItem(str(MAX_DIST)) 244 248 self.model.setItem(WIDGETS.W_MAX_DIST, item) 245 249 item = QtGui.QStandardItem("") … … 439 443 def getNFunc(self): 440 444 """Get the n_func value from the GUI object""" 441 return int(self.noOfTermsInput.text()) 445 try: 446 nfunc = int(self.noOfTermsInput.text()) 447 except ValueError: 448 logging.error("Incorrect number of terms specified: %s" %self.noOfTermsInput.text()) 449 self.noOfTermsInput.setText(str(NUMBER_OF_TERMS)) 450 nfunc = NUMBER_OF_TERMS 451 return nfunc 442 452 443 453 def setCurrentData(self, data_ref):
Note: See TracChangeset
for help on using the changeset viewer.