Changeset 6a3e1fe in sasview for src/sas/qtgui/Perspectives/Inversion/DMaxExplorerWidget.py
- Timestamp:
- Nov 17, 2017 8:59:52 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:
- 0261bc1
- Parents:
- 84df556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/DMaxExplorerWidget.py
- Property mode changed from 100755 to 100644
rd4881f6a r6a3e1fe 24 24 25 25 # local 26 from .UI.dmax import Ui_DmaxExplorer 27 # from InvariantDetails import DetailsDialog 28 # from InvariantUtils import WIDGETS 26 from .UI.DMaxExplorer import Ui_DmaxExplorer 29 27 30 28 logger = logging.getLogger(__name__) … … 78 76 def setupModel(self): 79 77 self.model.setItem(W.NPTS, QtGui.QStandardItem(str(self.nfunc))) 80 self.model.setItem(W.DMIN, 81 QtGui.QStandardItem( 82 str(0.9*self.pr_state.d_max))) 83 self.model.setItem(W.DMAX, 84 QtGui.QStandardItem( 85 str(1.1*self.pr_state.d_max))) 86 self.model.setItem(W.VARIABLE, 87 QtGui.QStandardItem( "ϲ/dof")) 78 self.model.setItem(W.DMIN, QtGui.QStandardItem(str(0.9*self.pr_state.d_max))) 79 self.model.setItem(W.DMAX, QtGui.QStandardItem(str(1.1*self.pr_state.d_max))) 80 self.model.setItem(W.VARIABLE, QtGui.QStandardItem( "ϲ/dof")) 88 81 89 82 def setupMapper(self): … … 133 126 msg += "for D_max=%s\n%s" % (str(x), sys.exc_info()[1]) 134 127 print(msg) 135 #logger.error(msg)128 logger.error(msg) 136 129 137 130 #Return the invertor to its original state 138 131 self.pr_state.d_max = original 139 self.pr_state.invert(self.nfunc) 132 try: 133 self.pr_state.invert(self.nfunc) 134 except RuntimeError as ex: 135 msg = "ExploreDialog: inversion failed " 136 msg += "for D_max=%s\n%s" % (str(x), sys.exc_info()[1]) 137 print(msg) 138 logger.error(msg) 140 139 141 140 plotter = str(self.model.item(W.VARIABLE).text())
Note: See TracChangeset
for help on using the changeset viewer.