Changeset 0fe7e5b in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Aug 21, 2018 6:29:41 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
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:
c0de493
Parents:
e11106e
Message:

remove redundant intermediate plots when a new model is selected that does not plot them

File:
1 edited

Legend:

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

    re11106e r0fe7e5b  
    22272227        """ 
    22282228        fitted_data = self.logic.new1DPlot(return_data, self.tab_id) 
    2229         self.calculateResiduals(fitted_data) 
     2229        residuals = self.calculateResiduals(fitted_data) 
    22302230        self.model_data = fitted_data 
     2231 
     2232        new_plots = [fitted_data, residuals] 
    22312233 
    22322234        # Create plots for intermediate product data 
     
    22352237            pq_data.symbol = "Line" 
    22362238            self.createNewIndex(pq_data) 
     2239            new_plots.append(pq_data) 
    22372240        if sq_data is not None: 
    22382241            sq_data.symbol = "Line" 
    22392242            self.createNewIndex(sq_data) 
     2243            new_plots.append(sq_data) 
     2244 
     2245        if self.data_is_loaded: 
     2246            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
    22402247 
    22412248    def complete2D(self, return_data): 
     
    22732280        residuals_plot.id = "Residual " + residuals_plot.id 
    22742281        self.createNewIndex(residuals_plot) 
     2282        return residuals_plot 
    22752283 
    22762284    def onCategoriesChanged(self): 
Note: See TracChangeset for help on using the changeset viewer.