Changeset 75906a1 in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Oct 26, 2018 6:39:39 AM (6 years ago)
- 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
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r8748751 r75906a1 3364 3364 else: 3365 3365 index = self.theory_item 3366 params = FittingUtilities.getStandardParam(self._model_model) 3366 3367 report_logic = ReportPageLogic(self, 3367 3368 kernel_module=self.kernel_module, 3368 3369 data=self.data, 3369 3370 index=index, 3370 model=self._model_model)3371 params=params) 3371 3372 3372 3373 return report_logic.reportList() -
src/sas/qtgui/Perspectives/Fitting/ReportPageLogic.py
r085ee014 r75906a1 13 13 14 14 import sas.qtgui.Utilities.GuiUtils as GuiUtils 15 from sas.qtgui.Perspectives.Fitting import FittingUtilities16 15 17 16 class ReportPageLogic(object): … … 19 18 Logic for the Report Page functionality. Refactored from FittingWidget. 20 19 """ 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): 22 21 23 22 self.parent = parent … … 25 24 self.data = data 26 25 self._index = index 27 self. model = model26 self.params = params 28 27 29 28 @staticmethod … … 119 118 Look at widget state and extract parameters 120 119 """ 121 pars = FittingUtilities.getStandardParam(self.model) 122 if pars is None: 120 if self.params is None: 123 121 return "" 124 122 125 123 report = "" 126 124 plus_minus = " ± " 127 for value in pars:125 for value in self.params: 128 126 try: 129 127 par_name = value[1]
Note: See TracChangeset
for help on using the changeset viewer.