Changeset ee95012 in sasmodels for sasmodels/product.py
- Timestamp:
- Oct 31, 2017 6:45:31 AM (6 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- edb0f85
- Parents:
- 439ffcd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r439ffcd ree95012 102 102 model_info.control = p_info.control 103 103 model_info.hidden = p_info.hidden 104 model_info.profile = p_info.profile 104 if getattr(p_info, 'profile', None) is not None: 105 def profile(**kwargs): 106 list_params = [p.name.split('[')[0] for p in p_info.parameters.kernel_parameters] 107 form_factor_args = dict((k, v) for k, v in kwargs.items() if k in list_params) 108 return p_info.profile(**form_factor_args) 109 else: 110 profile = None 111 model_info.profile = profile 105 112 model_info.profile_axes = p_info.profile_axes 106 113
Note: See TracChangeset
for help on using the changeset viewer.