Changeset fa1582e in sasmodels


Ignore:
Timestamp:
Mar 29, 2016 10:38:55 AM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
2a3e1f5, d7028dc
Parents:
53215cf
Message:

remove constraint which set n_stacking=1 on stacked disk model in compare

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r1671636 rfa1582e  
    785785    n1 = int(args[1]) if len(args) > 1 else 1 
    786786    n2 = int(args[2]) if len(args) > 2 else 1 
     787    use_sasview = any(engine=='sasview' and count>0 
     788                      for engine, count in zip(engines, [n1, n2])) 
    787789 
    788790    # Get demo parameters from model definition, or use default parameters 
     
    812814    #import pprint; pprint.pprint(model_info) 
    813815    constrain_pars(model_info, pars) 
    814     constrain_new_to_old(model_info, pars) 
     816    if use_sasview: 
     817        constrain_new_to_old(model_info, pars) 
    815818    if opts['show_pars']: 
    816819        print(str(parlist(model_info, pars, opts['is2d']))) 
  • sasmodels/convert.py

    r53215cf rfa1582e  
    183183    namelist = name.split('*') if '*' in name else [name] 
    184184    for name in namelist: 
    185         if name == 'stacked_disks': 
    186             pars['n_stacking'] = 1 
    187         elif name == 'pearl_necklace': 
     185        #if name == 'stacked_disks': 
     186        #    pars['n_stacking'] = 1 
     187        if name == 'pearl_necklace': 
    188188            pars['string_thickness_pd_n'] = 0 
    189189            pars['number_of_pearls_pd_n'] = 0 
Note: See TracChangeset for help on using the changeset viewer.