Changes in sasmodels/convert.py [21c93c3:610ef23] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r21c93c3 r610ef23  
    105105                    translation[newid+str(k)] = oldid+str(k) 
    106106    # Remove control parameter from the result 
    107     control_pars = [p.id for p in model_info.parameters.kernel_parameters 
    108                     if p.is_control] 
    109     if control_pars: 
    110         control_id = control_pars[0] 
    111         translation[control_id] = "CONTROL" 
     107    if model_info.control: 
     108        translation[model_info.control] = "CONTROL" 
    112109    return translation 
    113110 
Note: See TracChangeset for help on using the changeset viewer.