Changeset 228cbd3 in sasmodels


Ignore:
Timestamp:
Mar 17, 2016 8:27:16 AM (9 years ago)
Author:
smk78
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:
c7062fe
Parents:
5111921
Message:

Added exceptions for i_zero in mono_gauss_coil and poly_gauss_coil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r310ddcb r228cbd3  
    129129            warnings.warn("parameter background not used in sasview %s"%name) 
    130130 
     131 
    131132    # If it is a product model P*S, then check the individual forms for special 
    132133    # cases.  Note: despite the structure factor alone not having scale or 
     
    146147            for p in "La", "Lb", "Lc", "Ld": 
    147148                if p in oldpars: oldpars[p] *= 1e-13 
     149        elif name == 'core_shell_parallelepiped': 
     150            _remove_pd(oldpars, 'rimA', name) 
     151        elif name in ['mono_gauss_coil','poly_gauss_coil']: 
     152            del oldpars['i_zero'] 
    148153 
    149154    return oldpars 
     
    177182        elif name == 'rpa': 
    178183            pars['case_num'] = int(pars['case_num']) 
     184        elif name == 'mono_gauss_coil': 
     185            pars['i_zero'] = 1 
     186        elif name == 'poly_gauss_coil': 
     187            pars['i_zero'] = 1 
     188             
Note: See TracChangeset for help on using the changeset viewer.