Changeset d7d55c7 in sasview


Ignore:
Timestamp:
Oct 24, 2018 7:19:29 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
6bc0840
Parents:
1e0296b
Message:

Don't update the shell parameter which might not be there after backend
multiplication.

File:
1 edited

Legend:

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

    r1e0296b rd7d55c7  
    23182318        max_column = self.lstParams.itemDelegate().param_max 
    23192319        if model_column == param_column: 
    2320             self.kernel_module.setParam(parameter_name, value) 
     2320            # don't try to update multiplicity counters if they aren't there. 
     2321            # Note that this will fail for proper bad update where the model 
     2322            # doesn't contain multiplicity parameter 
     2323            if parameter_name != self.kernel_module.multiplicity_info.control: 
     2324                self.kernel_module.setParam(parameter_name, value) 
    23212325        elif model_column == min_column: 
    23222326            # min/max to be changed in self.kernel_module.details[parameter_name] = ['Ang', 0.0, inf] 
Note: See TracChangeset for help on using the changeset viewer.