Changeset 144ec831 in sasview


Ignore:
Timestamp:
Jun 14, 2017 5:43:14 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
b0c5e8c
Parents:
1643d8ed
Message:

A few more minor fixes after code review SASVIEW-594

File:
1 edited

Legend:

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

    r1643d8ed r144ec831  
    12961296        if '[' in param.name: 
    12971297            return 
    1298         # Values from the sasmodel 
    1299         width = self.kernel_module.getParam(param.name+'.width') 
    1300         npts = self.kernel_module.getParam(param.name+'.npts') 
    1301         nsigs = self.kernel_module.getParam(param.name+'.nsigmas') 
    1302         # Potential multishell params 
    1303         checked_list = ["Distribution of "+param.name, str(width), 
     1298        # Polydisp. values from the sasmodel 
     1299        width = self.kernel_module.getParam(param.name + '.width') 
     1300        npts = self.kernel_module.getParam(param.name + '.npts') 
     1301        nsigs = self.kernel_module.getParam(param.name + '.nsigmas') 
     1302 
     1303        # Construct a row with polydisp. related variable. 
     1304        # This will get added to the polydisp. model 
     1305        # Note: last argument needs extra space padding for decent display of the control 
     1306        checked_list = ["Distribution of " + param.name, str(width), 
    13041307                        str(param.limits[0]), str(param.limits[1]), 
    13051308                        str(npts), str(nsigs), "gaussian      "] 
     
    13091312        func = QtGui.QComboBox() 
    13101313        func.addItems([str(name_disp) for name_disp in POLYDISPERSITY_MODELS.iterkeys()]) 
    1311         # Default index 
     1314        # set the default index 
    13121315        func.setCurrentIndex(func.findText(DEFAULT_POLYDISP_FUNCTION)) 
    1313         # Index in the view 
    1314         #func_index = self.lstPoly.model().index(row, 6) 
    13151316 
    13161317    def onPolyComboIndexChange(self, combo_string, row_index): 
     
    13181319        Modify polydisp. defaults on function choice 
    13191320        """ 
    1320         # get npts/nsigs for current selection 
     1321        # Get npts/nsigs for current selection 
    13211322        param = self.model_parameters.form_volume_parameters[row_index] 
    13221323 
     
    13261327            if param_name !=  param.name: 
    13271328                return 
    1328             # modify the param value 
     1329            # Modify the param value 
    13291330            self._model_model.item(row, 0).child(0).child(0,4).setText(combo_string) 
    13301331 
Note: See TracChangeset for help on using the changeset viewer.