Changeset af893db in sasview


Ignore:
Timestamp:
Mar 28, 2019 9:49:32 AM (4 months ago)
Author:
ibressler
Branches:
ESS_GUI_bumps_abstraction
Children:
c9d6b9f
Parents:
ea1753f
Message:

FittingOptions?: moved str() to currentOptimizer getter

  • not sure if necessary, but existed everywhere already
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingOptions.py

    rea1753f raf893db  
    258258        Sets the appropriate validators to the line edits as defined by FittingMethodParameter 
    259259        """ 
    260         fm = self.fittingMethods[str(self.currentOptimizer)] 
     260        fm = self.fittingMethods[self.currentOptimizer] 
    261261        for param in fm.params.values(): 
    262262            validator = None 
     
    293293        """ 
    294294        # Find the algorithm ID from name 
    295         selectedName = str(self.currentOptimizer) 
     295        selectedName = self.currentOptimizer 
    296296        if selectedName in self.fittingMethods.longNames: 
    297297            self.current_fitter_id = self.fittingMethods[selectedName].shortName 
     
    349349        Update the fitter object 
    350350        """ 
    351         fm = self.fittingMethods[str(self.currentOptimizer)] 
     351        fm = self.fittingMethods[self.currentOptimizer] 
    352352        for param in fm.params.values(): 
    353353            line_edit = self.paramWidget(fm, param.shortName) 
     
    394394        Sends back the current choice of parameters 
    395395        """ 
    396         return self.cbAlgorithm.currentText() 
     396        value = self.cbAlgorithm.currentText() 
     397        return str(value) # is str() really needed? 
    397398 
    398399    def updateWidgetFromConfig(self): 
     
    401402        and update the widget 
    402403        """ 
    403         fm = self.fittingMethods[str(self.currentOptimizer)] 
     404        fm = self.fittingMethods[self.currentOptimizer)] 
    404405        for param in fm.params.values(): 
    405406            # Find the widget name of the option 
Note: See TracChangeset for help on using the changeset viewer.