Changeset b6d1d52 in sasmodels


Ignore:
Timestamp:
Sep 27, 2018 10:47:35 PM (3 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket-1157
Children:
293fee5
Parents:
1e420e6
Message:

use default background from kernel for direct model and bumps model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/direct_model.py

    r7b9e4dd rb6d1d52  
    3131from . import resolution2d 
    3232from .details import make_kernel_args, dispersion_mesh 
    33 from .modelinfo import DEFAULT_BACKGROUND 
    3433 
    3534# pylint: disable=unused-import 
     
    350349 
    351350        # Need to pull background out of resolution for multiple scattering 
    352         background = pars.get('background', DEFAULT_BACKGROUND) 
     351        default_background = self._model.info.parameters.common_parameters[1].default 
     352        background = pars.get('background', default_background) 
    353353        pars = pars.copy() 
    354354        pars['background'] = 0. 
Note: See TracChangeset for help on using the changeset viewer.