Changeset 4f4d3e3 in sasmodels


Ignore:
Timestamp:
Jan 29, 2019 12:16:01 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f3767c2
Parents:
b171acd
Message:

re-enable control parameter for rpa model. Refs #1022

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/modelinfo.py

    rb171acd r4f4d3e3  
    833833    info.random = getattr(kernel_module, 'random', None) 
    834834    info.hidden = getattr(kernel_module, 'hidden', None) # type: ignore 
     835 
     836    # Set control flag for explicitly set parameters, e.g., in the RPA model. 
     837    control = getattr(kernel_module, 'control', None) 
     838    if control is not None: 
     839        parameters[control].is_control = True 
    835840 
    836841    if callable(info.Iq) and parameters.has_2d: 
Note: See TracChangeset for help on using the changeset viewer.