Ignore:
Timestamp:
Jan 25, 2018 8:00:20 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
17968c3
Parents:
116dd4c1
Message:

C&S fitting now runs and updates fit tabs - SASVIEW-860

File:
1 edited

Legend:

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

    r116dd4c1 rc6343a5  
    10861086 
    10871087        # Prepare the fitter object 
    1088         fitters, _ = self.prepareFitters() 
     1088        try: 
     1089            fitters, _ = self.prepareFitters() 
     1090        except ValueError as ex: 
     1091            # This should not happen! GUI explicitly forbids this situation 
     1092            self.communicate.statusBarUpdateSignal.emit('Fitting attempt without parameters.') 
     1093            return 
    10891094 
    10901095        # Create the fitting thread, based on the fitter 
     
    12001205        qmax = self.q_range_max 
    12011206        params_to_fit = self.parameters_to_fit 
     1207        if (not params_to_fit): 
     1208            raise ValueError('Fitting requires at least one parameter to optimize.') 
    12021209 
    12031210        # Potential weights added directly to data 
Note: See TracChangeset for help on using the changeset viewer.