Changeset 691e268 in sasview


Ignore:
Timestamp:
Mar 29, 2019 9:27:29 AM (6 years ago)
Author:
ibressler
Branches:
ESS_GUI_bumps_abstraction
Children:
09e651d
Parents:
f86343bd
Message:

FittingOptions?: only offer algorithms which can be used

File:
1 edited

Legend:

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

    rf86343bd r691e268  
    162162        """ 
    163163        super(FittingMethodsBumps, self).__init__() 
    164         ids = fitters.FIT_ACTIVE_IDS 
     164        ids = [fid for fid in fitters.FIT_ACTIVE_IDS if fid != "mp"] # exclude unusable algos 
    165165        for f in fitters.FITTERS: 
    166166            if f.id not in ids: 
     
    220220        # option 1: hardcode the list of bumps fitting methods according to forms 
    221221        # option 2: create forms dynamically based on selected fitting methods 
    222         self.fittingMethods.add(FittingMethod('mcsas', 'McSAS', [])) # FIXME just testing for now 
     222#        self.fittingMethods.add(FittingMethod('mcsas', 'McSAS', [])) # FIXME just testing for now 
    223223        self.fittingMethods.setDefault('Levenberg-Marquardt') 
    224224 
Note: See TracChangeset for help on using the changeset viewer.