Changeset 1bc27f1 in sasview for src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
- Timestamp:
- May 11, 2017 4:53:22 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:
- d60da0c
- Parents:
- 672b8ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
r61a92d4 r1bc27f1 6 6 from PyQt4 import QtCore 7 7 8 from sas.sasgui.guiframe.dataFitting import Data1D9 8 from sas.sasgui.guiframe.dataFitting import Data2D 10 9 11 10 # Local UI 12 from UI.OptionsWidgetUI import Ui_tabOptions11 from sas.qtgui.Perspectives.Fitting.UI.OptionsWidgetUI import Ui_tabOptions 13 12 14 13 QMIN_DEFAULT = 0.0005 … … 50 49 # Logic component 51 50 self.logic = logic 51 self.parent = parent 52 52 53 53 # Weight radio box group … … 105 105 self.mapper.setOrientation(QtCore.Qt.Vertical) 106 106 107 self.mapper.addMapping(self.txtMinRange, 108 self.mapper.addMapping(self.txtMaxRange, 109 self.mapper.addMapping(self.txtNpts, 110 self.mapper.addMapping(self.chkLogData, 107 self.mapper.addMapping(self.txtMinRange, MODEL.index('MIN_RANGE')) 108 self.mapper.addMapping(self.txtMaxRange, MODEL.index('MAX_RANGE')) 109 self.mapper.addMapping(self.txtNpts, MODEL.index('NPTS')) 110 self.mapper.addMapping(self.chkLogData, MODEL.index('LOG_SPACED')) 111 111 self.mapper.toFirst() 112 112 … … 137 137 def onModelChange(self, top, bottom): 138 138 """ 139 Respond to model change by updating 139 Respond to model change by updating the plot 140 140 """ 141 #print "MODEL CHANGED for property: %s. The value is now: %s" % \ 142 # (MODEL[top.row()], str(self.model.item(top.row()).text())) 143 141 # "bottom" is unused 144 142 # update if there's something to update 145 143 if str(self.model.item(top.row()).text()): … … 190 188 q_range_min = float(self.model.item(MODEL.index('MIN_RANGE')).text()) 191 189 q_range_max = float(self.model.item(MODEL.index('MAX_RANGE')).text()) 192 npts 193 log_points 190 npts = int(self.model.item(MODEL.index('NPTS')).text()) 191 log_points = str(self.model.item(MODEL.index('LOG_SPACED')).text()) == 'true' 194 192 195 193 return (q_range_min, q_range_max, npts, log_points, self.weighting)
Note: See TracChangeset
for help on using the changeset viewer.