Changeset 736f27e in sasview


Ignore:
Timestamp:
Nov 3, 2016 5:16:31 AM (5 years ago)
Author:
ajj
Branches:
release_4.0.1
Children:
ee3be557
Parents:
c5a22a85
git-author:
Andrew Jackson <andrew.jackson@…> (10/10/16 14:16:59)
git-committer:
Andrew Jackson <andrew.jackson@…> (11/03/16 05:16:31)
Message:

Updating MultiplicationModel? to deal with results of fixing #657.

Fixes #750 (again)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/fit/MultiplicationModel.py

    rc5a22a85 r736f27e  
    167167        Set component backgrounds to zero 
    168168        """ 
    169         self.p_model.setParam('background',0) 
    170         self.s_model.setParam('background',0) 
     169        if 'background' in self.p_model.params: 
     170            self.p_model.setParam('background',0) 
     171        if 'background' in self.s_model.params: 
     172            self.s_model.setParam('background',0) 
    171173 
    172174 
Note: See TracChangeset for help on using the changeset viewer.