Changeset 8a32a6ff in sasview


Ignore:
Timestamp:
Sep 19, 2017 4:04:38 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:
e694f0f
Parents:
a14a2b0
Message:

Don't update parameter value on param range changes SASVIEW-676

File:
1 edited

Legend:

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

    ra14a2b0 r8a32a6ff  
    12741274        self.kernel_module.params[parameter_name] = value 
    12751275 
    1276         # min/max to be changed in self.kernel_module.details[parameter_name] = ['Ang', 0.0, inf] 
    1277         if model_column > 1: 
     1276        # Update the parameter value - note: this supports +/-inf as well 
     1277        if model_column == 0: 
     1278            self.kernel_module.setParam(parameter_name, value) 
     1279        else: 
     1280            # min/max to be changed in self.kernel_module.details[parameter_name] = ['Ang', 0.0, inf] 
    12781281            self.kernel_module.details[parameter_name][property_index] = value 
    12791282 
Note: See TracChangeset for help on using the changeset viewer.