Changeset df3c5d6 in sasview


Ignore:
Timestamp:
Mar 29, 2019 1:20:37 PM (7 weeks ago)
Author:
ibressler
Branches:
ESS_GUI_bumps_abstraction
Children:
3a3f192
Parents:
09e651d
Message:

FittingOptions?: let helpers ignore unexpected argument types

File:
1 edited

Legend:

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

    r09e651d rdf3c5d6  
    351351        Returns the widget associated to a FittingMethodParameter. 
    352352        """ 
    353         if paramShortName not in fittingMethod.params: 
    354             return None 
     353        if (not isinstance(fittingMethod, FittingMethod) 
     354            or paramShortName not in fittingMethod.params): 
     355            return 
    355356        widget_name = 'self.'+paramShortName+'_'+fittingMethod.shortName 
    356357        widget = None 
     
    429430 
    430431    def updateConfigFromWidget(self, fittingMethod): 
     432        """ 
     433        Updates the given FittingMethod with the values from the GUI widgets. 
     434        Does not respect the given data types in the FittingMethod (yet?). 
     435        """ 
     436        if not isinstance(fittingMethod, FittingMethod): 
     437            return 
    431438        # update config values from widgets before any notification is sent 
    432439        for param in fittingMethod.params.values(): 
Note: See TracChangeset for help on using the changeset viewer.