Ignore:
Timestamp:
Sep 25, 2018 8:35:34 AM (6 years ago)
Author:
Laura Forster <Awork@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
fa762f4, 20f4857
Parents:
085409e3 (diff), 65e76ed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' of https://github.com/SasView/sasview into ESS_GUI

File:
1 edited

Legend:

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

    r085409e3 r9b9ec10  
    15361536 
    15371537        elapsed = result[1] 
    1538         if self.calc_fit._interrupting: 
     1538        if self.calc_fit is not None and self.calc_fit._interrupting: 
    15391539            msg = "Fitting cancelled by user after: %s s." % GuiUtils.formatNumber(elapsed) 
    15401540            logger.warning("\n"+msg+"\n") 
     
    24122412                model.setParam(key, value) 
    24132413        # add magnetic params if asked 
    2414         if self.chkMagnetism.isChecked(): 
    2415             for key, value in self.magnet_params.items() and self._magnet_model.rowCount() > 0: 
     2414        if self.chkMagnetism.isChecked() and self._magnet_model.rowCount() > 0: 
     2415            for key, value in self.magnet_params.items(): 
    24162416                model.setParam(key, value) 
    24172417 
     
    24912491        self.enableInteractiveElements() 
    24922492        if return_data is None: 
    2493             self.calculateDataFailed("Results not available.") 
    24942493            return 
    24952494        fitted_data = self.logic.new1DPlot(return_data, self.tab_id) 
     
    25432542        self.enableInteractiveElements() 
    25442543 
     2544        if return_data is None: 
     2545            return 
     2546 
    25452547        fitted_data = self.logic.new2DPlot(return_data) 
     2548        # assure the current index is set properly for batch 
     2549        if len(self._logic) > 1: 
     2550            for i, logic in enumerate(self._logic): 
     2551                if logic.data.name in fitted_data.name: 
     2552                    self.data_index = i 
     2553 
    25462554        residuals = self.calculateResiduals(fitted_data) 
    25472555        self.model_data = fitted_data 
Note: See TracChangeset for help on using the changeset viewer.