Changeset bb2d187 in sasmodels


Ignore:
Timestamp:
Oct 4, 2016 6:04:38 PM (8 years ago)
Author:
wojciech
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
b0c4271
Parents:
e6378f9
Message:

Changing radius parameters names for barbell and capped cylinder model in compare.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r41e7f2e rbb2d187  
    312312        name = name.split('*')[0] 
    313313 
    314     if name == 'capped_cylinder' and pars['cap_radius'] < pars['radius']: 
    315         pars['radius'], pars['cap_radius'] = pars['cap_radius'], pars['radius'] 
    316     if name == 'barbell' and pars['bell_radius'] < pars['radius']: 
    317         pars['radius'], pars['bell_radius'] = pars['bell_radius'], pars['radius'] 
     314    if name == 'capped_cylinder' and pars['radius_cap'] < pars['radius']: 
     315        pars['radius'], pars['radius_cap'] = pars['radius_cap'], pars['radius'] 
     316    if name == 'barbell' and pars['radius_bell'] < pars['radius']: 
     317        pars['radius'], pars['radius_bell'] = pars['radius_bell'], pars['radius'] 
    318318 
    319319    # Limit guinier to an Rg such that Iq > 1e-30 (single precision cutoff) 
Note: See TracChangeset for help on using the changeset viewer.