Ignore:
Timestamp:
Sep 21, 2018 5:34:48 AM (6 years ago)
Author:
ibressler
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
30bed93
Parents:
f9be147
git-author:
Ingo Breßler <dev@…> (09/21/18 05:34:32)
git-committer:
Ingo Breßler <dev@…> (09/21/18 05:34:48)
Message:

FittingWidget?.updateData(): ensure theory is recalc. before plot

  • cosmetic change, comment added
File:
1 edited

Legend:

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

    rf9be147 r33d5956  
    11201120            # Create default datasets if no data passed 
    11211121            self.createDefaultDataset() 
     1122            self.theory_item = None # ensure theory is recalc. before plot, see showTheoryPlot() 
    11221123 
    11231124    def respondToModelStructure(self, model=None, structure_factor=None): 
     
    18391840        # of plots being applied. 
    18401841        QtWidgets.QApplication.processEvents() 
    1841         self.recalculatePlotData() 
     1842        self.recalculatePlotData() # recalc+plot theory again (2nd) 
    18421843 
    18431844    def onSmearingOptionsUpdate(self): 
     
    18621863        if self.theory_item is None: 
    18631864            self.recalculatePlotData() 
    1864             return 
    1865         if self.model_data: 
     1865        elif self.model_data: 
    18661866            self._requestPlots(self.model_data.filename, self.theory_item.model()) 
    18671867 
Note: See TracChangeset for help on using the changeset viewer.