Changeset 1643d8ed in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Jun 14, 2017 5:18:03 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:
- 144ec831
- Parents:
- 2d0e0c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r8eaa101 r1643d8ed 487 487 # Is the parameter checked for fitting? 488 488 value = item.checkState() 489 parameter_name = parameter_name +'.width'489 parameter_name = parameter_name + '.width' 490 490 if value == QtCore.Qt.Checked: 491 491 self.parameters_to_fit.append(parameter_name) … … 501 501 return 502 502 503 property_name = str(self._poly_model.headerData(model_column, 1).toPyObject()).lower() # Value, min, max, etc.504 # print "%s(%s) => %d" % (parameter_name, property_name, value)505 503 current_details = self.kernel_module.details[parameter_name] 506 504 current_details[model_column-1] = value … … 514 512 # Can't be converted properly, bring back the old value and exit 515 513 return 516 property_name = str(self._poly_model.headerData(model_column, 1).toPyObject()).lower() # Value, min, max, etc.517 514 518 515 # Update the sasmodel … … 1294 1291 def setPolyModelParameters(self, row, param): 1295 1292 """ 1296 Creates a checked row offor a polydisperse parameter1293 Creates a checked row for a polydisperse parameter 1297 1294 """ 1298 1295 # Not suitable for multishell … … 1326 1323 def updateFunctionCaption(row): 1327 1324 # Utility function for update of polydispersity function name in the main model 1328 param_name = str(self._model_model.item(row, 0).text()) # +'.width'1325 param_name = str(self._model_model.item(row, 0).text()) 1329 1326 if param_name != param.name: 1330 1327 return … … 1368 1365 if not datafile: 1369 1366 logging.info("No weight data chosen.") 1370 r eturn1367 raise IOError 1371 1368 values = [] 1372 1369 weights = [] … … 1386 1383 [appendData(line) for line in column_data] 1387 1384 1385 # If everything went well - update the sasmodel values 1388 1386 self.disp_model = POLYDISPERSITY_MODELS['array']() 1389 1387 self.disp_model.set_weights(np.array(values), np.array(weights))
Note: See TracChangeset
for help on using the changeset viewer.