Ignore:
Timestamp:
Aug 30, 2018 10:47:39 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:
eef298d4
Parents:
b8080e1
Message:

plotting fixes: appended plots now update; Show Plot no longer breaks if file's plot(s) have been appended to

File:
1 edited

Legend:

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

    r906e0c7 r9463ca2  
    22752275            pq_data.symbol = "Line" 
    22762276            self.createNewIndex(pq_data) 
     2277            # self.communicate.plotUpdateSignal.emit([pq_data]) 
    22772278            new_plots.append(pq_data) 
    22782279        if sq_data is not None: 
    22792280            sq_data.symbol = "Line" 
    22802281            self.createNewIndex(sq_data) 
     2282            # self.communicate.plotUpdateSignal.emit([sq_data]) 
    22812283            new_plots.append(sq_data) 
    22822284 
    22832285        if self.data_is_loaded: 
    22842286            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
     2287 
     2288        for plot in new_plots: 
     2289            if hasattr(plot, "id") and "esidual" in plot.id: 
     2290                # TODO: fix updates to residuals plot 
     2291                pass 
     2292            else: 
     2293                self.communicate.plotUpdateSignal.emit([plot]) 
    22852294 
    22862295    def complete2D(self, return_data): 
     
    22942303    def calculateResiduals(self, fitted_data): 
    22952304        """ 
    2296         Calculate and print Chi2 and display chart of residuals 
     2305        Calculate and print Chi2 and display chart of residuals. Returns residuals plot object. 
    22972306        """ 
    22982307        # Create a new index for holding data 
     
    23092318        self.lblChi2Value.setText(chi2_repr) 
    23102319 
    2311         self.communicate.plotUpdateSignal.emit([fitted_data]) 
     2320        # self.communicate.plotUpdateSignal.emit([fitted_data]) 
    23122321 
    23132322        # Plot residuals if actual data 
Note: See TracChangeset for help on using the changeset viewer.