Ignore:
Timestamp:
Mar 25, 2019 11:49:45 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
13ee4d9
Parents:
b38c8c8
Message:

Calculate chi2 only when having actual data. SASVIEW-1276

File:
1 edited

Legend:

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

    r17e6a2b rd4c9242  
    28622862        self.createNewIndex(weighted_data) 
    28632863 
     2864        # Plot residuals if actual data 
     2865        if not self.data_is_loaded: 
     2866            return 
     2867 
    28642868        # Calculate difference between return_data and logic.data 
    28652869        self.chi2 = FittingUtilities.calculateChi2(weighted_data, self.data) 
     
    28672871        chi2_repr = "---" if self.chi2 is None else GuiUtils.formatNumber(self.chi2, high=True) 
    28682872        self.lblChi2Value.setText(chi2_repr) 
    2869  
    2870         # Plot residuals if actual data 
    2871         if not self.data_is_loaded: 
    2872             return 
    28732873 
    28742874        residuals_plot = FittingUtilities.plotResiduals(self.data, weighted_data) 
Note: See TracChangeset for help on using the changeset viewer.