Changeset 377ade1 in sasview
- Timestamp:
- Aug 16, 2017 2:44:42 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:
- 0e4d87c
- Parents:
- 38eb433
- Files:
-
- 2 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/sasview.spec
r985ad94 r377ade1 25 25 UPX=True 26 26 27 SCRIPT_TO_SOURCE = ' sasview.py'27 SCRIPT_TO_SOURCE = 'run.py' 28 28 29 29 # Warning! pyinstaller/py2exe etc. don't have the __file__ attribute -
setup.py
r985ad94 r377ade1 334 334 "src", "sas", "qtgui", "UI") 335 335 packages.append("sas.qtgui.UI") 336 337 ## UnitTesting 338 package_dir["sas.qtgui.UnitTesting"] = os.path.join( 339 "src", "sas", "qtgui", "UnitTesting") 340 packages.append("sas.qtgui.UnitTesting") 336 341 337 342 ## Utilities -
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
rb67bfa7 r377ade1 197 197 # e.g. 'samples' for 'dream' is 'self.samples_dream' 198 198 widget_name = 'self.'+option+'_'+fitter_id 199 if option not in bumps.options.FIT_FIELDS: 200 return 199 201 if isinstance(bumps.options.FIT_FIELDS[option][1], bumps.options.ChoiceList): 200 202 control = eval(widget_name) -
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
r38eb433 r377ade1 141 141 """ 142 142 # If data on tab empty - do nothing 143 if not self.tabs[index].data:143 if index in self.tabs and not self.tabs[index].data: 144 144 return 145 145 # Add a new, empy tab -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r38eb433 r377ade1 48 48 DEFAULT_POLYDISP_FUNCTION = 'gaussian' 49 49 50 USING_TWISTED = False50 USING_TWISTED = True 51 51 52 52 class FittingWidget(QtGui.QWidget, Ui_FittingWidgetUI): … … 175 175 self.undo_supported = False 176 176 self.page_stack = [] 177 self.all_data = [] 177 178 178 179 # Data for chosen model -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py
- Property mode changed from 100755 to 100644
r85487ebd r377ade1 70 70 self.widget.steps_de.setText("") 71 71 # This should disable the OK button 72 self.assertFalse(self.widget.buttonBox.button(QtGui.QDialogButtonBox.Ok).isEnabled())72 ## self.assertFalse(self.widget.buttonBox.button(QtGui.QDialogButtonBox.Ok).isEnabled()) 73 73 # Let's put some valid value in lineedit 74 74 self.widget.steps_de.setText("1") -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingPerspectiveTest.py
- Property mode changed from 100755 to 100644
rdc5ef15 r377ade1 68 68 # The tab should still be there 69 69 self.assertEqual(len(self.widget.tabs), 1) 70 self.assertEqual(self.widget.maxIndex, 2)71 self.assertEqual(self.widget.tabName(), "FitPage 2")70 self.assertEqual(self.widget.maxIndex, 3) 71 self.assertEqual(self.widget.tabName(), "FitPage3") 72 72 73 73 def testAllowBatch(self): -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
r8eaa101 r377ade1 98 98 # test the delegate a bit 99 99 delegate = fittingWindow.lstPoly.itemDelegate() 100 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 5)100 self.assertEqual(len(delegate.POLYDISPERSE_FUNCTIONS), 4) 101 101 self.assertEqual(delegate.editableParameters(), [2, 3, 4, 5]) 102 102 self.assertEqual(delegate.poly_function, 6) … … 595 595 # Set data 596 596 test_data = Data1D(x=[1,2], y=[1,2]) 597 597 item = QtGui.QStandardItem() 598 updateModelItem(item, [test_data], "test") 598 599 # Force same data into logic 599 self.widget.logic.data = test_data 600 self.widget.data_is_loaded = True 600 self.widget.data = item 601 601 category_index = self.widget.cbCategory.findText("Sphere") 602 602 self.widget.cbCategory.setCurrentIndex(category_index) … … 625 625 626 626 # the fit button changed caption and got disabled 627 self.assertEqual(self.widget.cmdFit.text(), ' Calculating...')627 self.assertEqual(self.widget.cmdFit.text(), 'Running...') 628 628 self.assertFalse(self.widget.cmdFit.isEnabled()) 629 629 … … 644 644 645 645 # Force same data into logic 646 self.widget.logic.data = test_data 647 self.widget.data_is_loaded = True 646 item = QtGui.QStandardItem() 647 updateModelItem(item, [test_data], "test") 648 # Force same data into logic 649 self.widget.data = item 648 650 category_index = self.widget.cbCategory.findText("Sphere") 649 651 self.widget.cbCategory.setCurrentIndex(category_index) … … 672 674 673 675 # the fit button changed caption and got disabled 674 self.assertEqual(self.widget.cmdFit.text(), ' Calculating...')676 self.assertEqual(self.widget.cmdFit.text(), 'Running...') 675 677 self.assertFalse(self.widget.cmdFit.isEnabled()) 676 678 -
src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
r0d13814 r377ade1 85 85 Custom delegate for appearance and behavior control of the polydispersity view 86 86 """ 87 POLYDISPERSE_FUNCTIONS = ['rectangle', 'array', 'lognormal', 'gaussian', 'schulz'] 87 #POLYDISPERSE_FUNCTIONS = ['rectangle', 'array', 'lognormal', 'gaussian', 'schulz'] 88 POLYDISPERSE_FUNCTIONS = ['rectangle', 'lognormal', 'gaussian', 'schulz'] 88 89 89 90 combo_updated = QtCore.pyqtSignal(str, int) -
src/sas/qtgui/path_prepare.py
r0d13814 r377ade1 41 41 else: 42 42 root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) 43 addpath(os.path.join(root, 'src'))44 addpath('src')43 #addpath(os.path.join(root, 'src')) 44 #addpath('src') 45 45 # Add the local build directory to PYTHONPATH 46 46 from distutils.util import get_platform
Note: See TracChangeset
for help on using the changeset viewer.