Changeset 725d9c06 in sasview
- Timestamp:
- Feb 8, 2018 1:50:04 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:
- 235d766
- Parents:
- a90c9c5
- Location:
- src/sas/qtgui
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/GuiManagerTest.py
r14ec91c5 r725d9c06 9 9 from PyQt5.QtTest import QTest 10 10 from PyQt5.QtCore import * 11 from PyQt5.QtWebKit import *12 11 from unittest.mock import MagicMock 13 12 -
src/sas/qtgui/Perspectives/Fitting/ComplexConstraint.py
r14ec91c5 r725d9c06 3 3 """ 4 4 import os 5 6 # numpy methods required for the validator! Don't remove. 7 # pylint: disable=unused-import,unused-wildcard-import,redefined-builtin 5 8 from numpy import * 6 9 … … 15 18 # Local UI 16 19 from sas.qtgui.Perspectives.Fitting.UI.ComplexConstraintUI import Ui_ComplexConstraintUI 17 from sas.qtgui.Perspectives.Fitting.Constraint import Constraint18 20 19 21 class ComplexConstraint(QtWidgets.QDialog, Ui_ComplexConstraintUI): … … 46 48 self.tab_names = [tab.kernel_module.name for tab in self.tabs] 47 49 self.params = [tab.getParamNames() for tab in self.tabs] 48 pass49 50 50 51 def setupSignals(self): … … 104 105 else: 105 106 self.txtConstraint.setText(self.tab_names[1] + "." + self.cbParam2.currentText()) 106 pass107 107 108 108 def onOperatorChange(self, index): … … 140 140 Add visual cues when formula is incorrect 141 141 """ 142 formula_is_valid = False143 142 formula_is_valid = self.validateConstraint(self.txtConstraint.text()) 144 143 if not formula_is_valid: … … 177 176 if parameter_string_start < 0: 178 177 return False 179 parameter_string_end = parameter_string_start + len(param_str)180 178 181 179 # 3. replace parameter name with "1" and try to evaluate the expression -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/ComplexConstraintTest.py
ra90c9c5 r725d9c06 7 7 8 8 from PyQt5 import QtGui, QtWidgets 9 from PyQt5 import QtWebKit10 9 11 10 # set up import paths -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/ConstraintWidgetTest.py
ra90c9c5 r725d9c06 6 6 7 7 from PyQt5 import QtGui, QtCore, QtWidgets 8 from PyQt5 import QtWebKit9 8 from PyQt5.QtTest import QTest 10 9 -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingOptionsTest.py
r14ec91c5 r725d9c06 5 5 6 6 from PyQt5 import QtGui, QtWidgets 7 from PyQt5 import QtWebKit8 7 9 8 from unittest.mock import MagicMock -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/MultiConstraintTest.py
rda9a0722 r725d9c06 7 7 8 8 from PyQt5 import QtGui, QtWidgets 9 from PyQt5 import QtWebKit10 9 11 10 # set up import paths -
src/sas/qtgui/Plotting/UnitTesting/SlicerParametersTest.py
r14ec91c5 r725d9c06 7 7 from PyQt5 import QtCore 8 8 from PyQt5 import QtTest 9 from PyQt5 import QtWebKit10 9 11 10 # set up import paths
Note: See TracChangeset
for help on using the changeset viewer.