Changeset 144ec831 in sasview
- Timestamp:
- Jun 14, 2017 5:43:14 AM (8 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:
- b0c5e8c
- Parents:
- 1643d8ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r1643d8ed r144ec831 1296 1296 if '[' in param.name: 1297 1297 return 1298 # Values from the sasmodel 1299 width = self.kernel_module.getParam(param.name+'.width') 1300 npts = self.kernel_module.getParam(param.name+'.npts') 1301 nsigs = self.kernel_module.getParam(param.name+'.nsigmas') 1302 # Potential multishell params 1303 checked_list = ["Distribution of "+param.name, str(width), 1298 # Polydisp. values from the sasmodel 1299 width = self.kernel_module.getParam(param.name + '.width') 1300 npts = self.kernel_module.getParam(param.name + '.npts') 1301 nsigs = self.kernel_module.getParam(param.name + '.nsigmas') 1302 1303 # Construct a row with polydisp. related variable. 1304 # This will get added to the polydisp. model 1305 # Note: last argument needs extra space padding for decent display of the control 1306 checked_list = ["Distribution of " + param.name, str(width), 1304 1307 str(param.limits[0]), str(param.limits[1]), 1305 1308 str(npts), str(nsigs), "gaussian "] … … 1309 1312 func = QtGui.QComboBox() 1310 1313 func.addItems([str(name_disp) for name_disp in POLYDISPERSITY_MODELS.iterkeys()]) 1311 # Default index1314 # set the default index 1312 1315 func.setCurrentIndex(func.findText(DEFAULT_POLYDISP_FUNCTION)) 1313 # Index in the view1314 #func_index = self.lstPoly.model().index(row, 6)1315 1316 1316 1317 def onPolyComboIndexChange(self, combo_string, row_index): … … 1318 1319 Modify polydisp. defaults on function choice 1319 1320 """ 1320 # get npts/nsigs for current selection1321 # Get npts/nsigs for current selection 1321 1322 param = self.model_parameters.form_volume_parameters[row_index] 1322 1323 … … 1326 1327 if param_name != param.name: 1327 1328 return 1328 # modify the param value1329 # Modify the param value 1329 1330 self._model_model.item(row, 0).child(0).child(0,4).setText(combo_string) 1330 1331
Note: See TracChangeset
for help on using the changeset viewer.