Changeset 3034fc5 in sasmodels


Ignore:
Timestamp:
Mar 27, 2016 9:32:52 AM (9 years ago)
Author:
butler
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
53215cf
Parents:
b274bec
Message:

added stacked_disk model's n_stacked parameter to list of parameters
that are not polydispers in SasView. Removes key error. Plot produced
by compare is however empty so still not working completely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    rc6ca41e r3034fc5  
    137137    namelist = name.split('*') if '*' in name else [name] 
    138138    for name in namelist: 
    139         if name == 'pearl_necklace': 
     139        if name == 'stacked_disks': 
     140            _remove_pd(oldpars, 'n_stacking', name) 
     141        elif name == 'pearl_necklace': 
    140142            _remove_pd(oldpars, 'num_pearls', name) 
    141143            _remove_pd(oldpars, 'thick_string', name) 
     
    181183    namelist = name.split('*') if '*' in name else [name] 
    182184    for name in namelist: 
    183         if name == 'pearl_necklace': 
     185        if name == 'stacked_disks': 
     186            pars['n_stacking'] = 0 
     187        elif name == 'pearl_necklace': 
    184188            pars['string_thickness_pd_n'] = 0 
    185189            pars['number_of_pearls_pd_n'] = 0 
Note: See TracChangeset for help on using the changeset viewer.