Changeset af893db in sasview
- Timestamp:
- Mar 28, 2019 9:49:32 AM (6 years ago)
- Branches:
- ESS_GUI_bumps_abstraction
- Children:
- c9d6b9f
- Parents:
- ea1753f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
rea1753f raf893db 258 258 Sets the appropriate validators to the line edits as defined by FittingMethodParameter 259 259 """ 260 fm = self.fittingMethods[s tr(self.currentOptimizer)]260 fm = self.fittingMethods[self.currentOptimizer] 261 261 for param in fm.params.values(): 262 262 validator = None … … 293 293 """ 294 294 # Find the algorithm ID from name 295 selectedName = s tr(self.currentOptimizer)295 selectedName = self.currentOptimizer 296 296 if selectedName in self.fittingMethods.longNames: 297 297 self.current_fitter_id = self.fittingMethods[selectedName].shortName … … 349 349 Update the fitter object 350 350 """ 351 fm = self.fittingMethods[s tr(self.currentOptimizer)]351 fm = self.fittingMethods[self.currentOptimizer] 352 352 for param in fm.params.values(): 353 353 line_edit = self.paramWidget(fm, param.shortName) … … 394 394 Sends back the current choice of parameters 395 395 """ 396 return self.cbAlgorithm.currentText() 396 value = self.cbAlgorithm.currentText() 397 return str(value) # is str() really needed? 397 398 398 399 def updateWidgetFromConfig(self): … … 401 402 and update the widget 402 403 """ 403 fm = self.fittingMethods[s tr(self.currentOptimizer)]404 fm = self.fittingMethods[self.currentOptimizer)] 404 405 for param in fm.params.values(): 405 406 # Find the widget name of the option
Note: See TracChangeset
for help on using the changeset viewer.