Ignore:
Timestamp:
Sep 9, 2018 5:35:30 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:
9d23e4c, 13dd7d2
Parents:
bb477f5
Message:

ensure update in kernel module when shell params are reset due to n_shells changing

File:
1 edited

Legend:

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

    rbb477f5 rdaf7c9c  
    28482848        self.current_shell_displayed = index 
    28492849 
    2850         # Change 'n' in the parameter model, thereby updating the underlying model 
     2850        # Param values for existing shells were reset to default; force all changes into kernel module 
     2851        for row in new_rows: 
     2852            par = row[0].text() 
     2853            val = GuiUtils.toDouble(row[1].text()) 
     2854            self.kernel_module.setParam(par, val) 
     2855 
     2856        # Change 'n' in the parameter model; also causes recalculation 
    28512857        self._model_model.item(self._n_shells_row, 1).setText(str(index)) 
    28522858 
Note: See TracChangeset for help on using the changeset viewer.