Changeset 1643d8ed in sasview


Ignore:
Timestamp:
Jun 14, 2017 3:18:03 AM (7 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:
144ec831
Parents:
2d0e0c1
Message:

code review fixes SASVIEW-594

File:
1 edited

Legend:

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

    r8eaa101 r1643d8ed  
    487487            # Is the parameter checked for fitting? 
    488488            value = item.checkState() 
    489             parameter_name = parameter_name+'.width' 
     489            parameter_name = parameter_name + '.width' 
    490490            if value == QtCore.Qt.Checked: 
    491491                self.parameters_to_fit.append(parameter_name) 
     
    501501                return 
    502502 
    503             property_name = str(self._poly_model.headerData(model_column, 1).toPyObject()).lower() # Value, min, max, etc. 
    504             # print "%s(%s) => %d" % (parameter_name, property_name, value) 
    505503            current_details = self.kernel_module.details[parameter_name] 
    506504            current_details[model_column-1] = value 
     
    514512                # Can't be converted properly, bring back the old value and exit 
    515513                return 
    516             property_name = str(self._poly_model.headerData(model_column, 1).toPyObject()).lower() # Value, min, max, etc. 
    517514 
    518515            # Update the sasmodel 
     
    12941291    def setPolyModelParameters(self, row, param): 
    12951292        """ 
    1296         Creates a checked row of for a polydisperse parameter 
     1293        Creates a checked row for a polydisperse parameter 
    12971294        """ 
    12981295        # Not suitable for multishell 
     
    13261323        def updateFunctionCaption(row): 
    13271324            # Utility function for update of polydispersity function name in the main model 
    1328             param_name = str(self._model_model.item(row, 0).text())# +'.width' 
     1325            param_name = str(self._model_model.item(row, 0).text()) 
    13291326            if param_name !=  param.name: 
    13301327                return 
     
    13681365        if not datafile: 
    13691366            logging.info("No weight data chosen.") 
    1370             return 
     1367            raise IOError 
    13711368        values = [] 
    13721369        weights = [] 
     
    13861383            [appendData(line) for line in column_data] 
    13871384 
     1385        # If everything went well - update the sasmodel values 
    13881386        self.disp_model = POLYDISPERSITY_MODELS['array']() 
    13891387        self.disp_model.set_weights(np.array(values), np.array(weights)) 
Note: See TracChangeset for help on using the changeset viewer.