Changeset daf7c9c in sasview


Ignore:
Timestamp:
Sep 9, 2018 5:35:30 AM (11 days ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_Pr_fixes, ESS_GUI_iss1052, ESS_GUI_iss879, ESS_GUI_poly_plot2
Children:
13dd7d2, 6fbb859
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.