Changeset cb90b65 in sasview for src/sas/qtgui/Perspectives/Fitting


Ignore:
Timestamp:
Sep 4, 2018 3:48:26 AM (6 years 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:
f53bc04
Parents:
1f646618
Message:

Make sure we get meaningful reports for theories.

File:
1 edited

Legend:

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

    r6dbff18 rcb90b65  
    266266        self.has_poly_error_column = False 
    267267        self.has_magnet_error_column = False 
     268 
     269        # If the widget generated theory item, save it 
     270        self.theory_item = None 
    268271 
    269272        # signal communicator 
     
    21932196        name = self.nameFromData(fitted_data) 
    21942197        # Notify the GUI manager so it can create the theory model in DataExplorer 
    2195         new_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
    2196         self.communicate.updateTheoryFromPerspectiveSignal.emit(new_item) 
     2198        self.theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
     2199        self.communicate.updateTheoryFromPerspectiveSignal.emit(self.theory_item) 
    21972200 
    21982201    def nameFromData(self, fitted_data): 
     
    28312834        if self.all_data: 
    28322835            index = self.all_data[self.data_index] 
     2836        else: 
     2837            index = self.theory_item 
    28332838        report_logic = ReportPageLogic(self, 
    28342839                                       kernel_module=self.kernel_module, 
Note: See TracChangeset for help on using the changeset viewer.