Ignore:
Timestamp:
Oct 10, 2016 2:16:59 PM (8 years ago)
Author:
ajj
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
199b515e, 8662a58
Parents:
ec72ceb
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

    rfd62331 r68669da  
    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.