Changeset a807206 in sasmodels for sasmodels/models/mono_gauss_coil.py


Ignore:
Timestamp:
Oct 1, 2016 12:42:06 AM (8 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:
caddb14, 5031ca3
Parents:
2222134
Message:

updating more parameter names addressing #649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/mono_gauss_coil.py

    r40a87fa ra807206  
    7171parameters = [ 
    7272    ["i_zero", "1/cm", 70.0, [0.0, inf], "", "Intensity at q=0"], 
    73     ["radius_gyration", "Ang", 75.0, [0.0, inf], "", "Radius of gyration"], 
     73    ["rg", "Ang", 75.0, [0.0, inf], "", "Radius of gyration"], 
    7474    ] 
    7575# pylint: enable=bad-whitespace, line-too-long 
    7676 
    7777# NB: Scale and Background are implicit parameters on every model 
    78 def Iq(q, i_zero, radius_gyration): 
     78def Iq(q, i_zero, rg): 
    7979    # pylint: disable = missing-docstring 
    80     z = (q * radius_gyration)**2 
     80    z = (q * rg)**2 
    8181 
    8282    with errstate(invalid='ignore'): 
     
    8686Iq.vectorized = True # Iq accepts an array of q values 
    8787 
    88 demo = dict(scale=1.0, i_zero=70.0, radius_gyration=75.0, background=0.0) 
     88demo = dict(scale=1.0, i_zero=70.0, rg=75.0, background=0.0) 
    8989 
    9090# these unit test values taken from SasView 3.1.2 
    9191tests = [ 
    92     [{'scale': 1.0, 'i_zero': 70.0, 'radius_gyration': 75.0, 'background': 0.0}, 
     92    [{'scale': 1.0, 'i_zero': 70.0, 'rg': 75.0, 'background': 0.0}, 
    9393     [0.0106939, 0.469418], [57.1241, 0.112859]], 
    9494    ] 
Note: See TracChangeset for help on using the changeset viewer.