Ignore:
Timestamp:
Sep 6, 2018 2:53: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:
605d944
Parents:
2df558e
Message:

delete intermediate theory-only plots after model evaluation, before adding current ones

this applies only to beta approximation, whereby plots such as beta(Q)
and S_eff(Q) may be removed between calculations. however, since it does
not affect behaviour otherwise, I am pushing to ESS_GUI to ensure no
later conflicts occur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    r6b50296 rfd7ef36  
    395395        self.communicate.perspectiveChangedSignal.connect(self.perspectiveChanged) 
    396396        self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 
     397        self.communicate.deleteIntermediateTheoryPlotsSignal.connect(self.deleteIntermediateTheoryPlotsByModelID) 
    397398        self.communicate.plotRequestedSignal.connect(self.showPlot) 
    398399        self.communicate.plotFromFilenameSignal.connect(self.showPlotFromFilename) 
     
    886887        self.filesWidget.updateTheoryFromPerspective(index) 
    887888 
     889    def deleteIntermediateTheoryPlotsByModelID(self, model_id): 
     890        """ 
     891        Catch the signal to delete items in the Theory item model which correspond to a model ID. 
     892        Send the request to the DataExplorer for updating the theory model. 
     893        """ 
     894        self.filesWidget.deleteIntermediateTheoryPlotsByModelID(model_id) 
     895 
    888896    def updateModelFromDataOperationPanel(self, new_item, new_datalist_item): 
    889897        """ 
Note: See TracChangeset for help on using the changeset viewer.