Changes in / [a06af5d:cf8b630] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r1f35235 redb0f85 101 101 model_info.composition = ('product', [p_info, s_info]) 102 102 model_info.control = p_info.control 103 model_info.hidden = p_info.hidden 104 if getattr(p_info, 'profile', None) is not None: 105 profile_pars = set(p.id for p in p_info.parameters.kernel_parameters) 106 def profile(**kwargs): 107 # extract the profile args 108 kwargs = dict((k, v) for k, v in kwargs.items() if k in profile_pars) 109 return p_info.profile(**kwargs) 110 else: 111 profile = None 112 model_info.profile = profile 113 model_info.profile_axes = p_info.profile_axes 114 103 115 # TODO: delegate random to p_info, s_info 104 116 #model_info.random = lambda: {}
Note: See TracChangeset
for help on using the changeset viewer.