Changeset 75906a1 in sasview for src/sas/qtgui/Perspectives/Fitting


Ignore:
Timestamp:
Oct 26, 2018 4:39:39 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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:
9d23e4c, 722b7d6
Parents:
aed159f
Message:

More fixes from PK's CR

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

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

    r8748751 r75906a1  
    33643364        else: 
    33653365            index = self.theory_item 
     3366        params = FittingUtilities.getStandardParam(self._model_model) 
    33663367        report_logic = ReportPageLogic(self, 
    33673368                                       kernel_module=self.kernel_module, 
    33683369                                       data=self.data, 
    33693370                                       index=index, 
    3370                                        model=self._model_model) 
     3371                                       params=params) 
    33713372 
    33723373        return report_logic.reportList() 
  • src/sas/qtgui/Perspectives/Fitting/ReportPageLogic.py

    r085ee014 r75906a1  
    1313 
    1414import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    15 from sas.qtgui.Perspectives.Fitting import FittingUtilities 
    1615 
    1716class ReportPageLogic(object): 
     
    1918    Logic for the Report Page functionality. Refactored from FittingWidget. 
    2019    """ 
    21     def __init__(self, parent=None, kernel_module=None, data=None, index=None, model=None): 
     20    def __init__(self, parent=None, kernel_module=None, data=None, index=None, params=None): 
    2221 
    2322        self.parent = parent 
     
    2524        self.data = data 
    2625        self._index = index 
    27         self.model = model 
     26        self.params = params 
    2827 
    2928    @staticmethod 
     
    119118        Look at widget state and extract parameters 
    120119        """ 
    121         pars = FittingUtilities.getStandardParam(self.model) 
    122         if pars is None: 
     120        if self.params is None: 
    123121            return "" 
    124122 
    125123        report = "" 
    126124        plus_minus = " &#177; " 
    127         for value in pars: 
     125        for value in self.params: 
    128126            try: 
    129127                par_name = value[1] 
Note: See TracChangeset for help on using the changeset viewer.