Changeset 5aad7a5 in sasview


Ignore:
Timestamp:
Sep 5, 2018 5:53:11 AM (13 months ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
f7e7e20
Parents:
f4aa7a8
Message:

Update residuals on param change as well. SASVIEW-1005

File:
1 edited

Legend:

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

    rf4aa7a8 r5aad7a5  
    23042304        residuals = self.calculateResiduals(fitted_data) 
    23052305        self.model_data = fitted_data 
    2306  
    2307         new_plots = [fitted_data, residuals] 
     2306        new_plots = [fitted_data] 
     2307        if residuals is not None: 
     2308            new_plots.append(residuals) 
    23082309 
    23092310        # Create plots for intermediate product data 
     
    23232324            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
    23242325 
     2326        # Update/generate plots 
    23252327        for plot in new_plots: 
    2326             if hasattr(plot, "id") and "esidual" in plot.id: 
    2327                 # TODO: fix updates to residuals plot 
    2328                 pass 
    2329             elif plot is not None: 
    2330                 self.communicate.plotUpdateSignal.emit([plot]) 
     2328            self.communicate.plotUpdateSignal.emit([plot]) 
    23312329 
    23322330    def complete2D(self, return_data): 
Note: See TracChangeset for help on using the changeset viewer.