Changeset a807206 in sasmodels for sasmodels/models/gaussian_peak.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/gaussian_peak.py

    r7f1ee79 ra807206  
    3434description = """ 
    3535    Model describes a Gaussian shaped peak including a flat background 
    36     Provide F(q) = scale*exp( -1/2 *[(q-q0)/sigma]^2 )+ background 
     36    Provide F(q) = scale*exp( -1/2 *[(q-peak_pos)/sigma]^2 )+ background 
    3737""" 
    3838category = "shape-independent" 
    3939 
    4040#             ["name", "units", default, [lower, upper], "type","description"], 
    41 parameters = [["q0", "1/Ang", 0.05, [-inf, inf], "", "Peak position"], 
     41parameters = [["peak_pos", "1/Ang", 0.05, [-inf, inf], "", "Peak position"], 
    4242              ["sigma", "1/Ang", 0.005, [0, inf], "", 
    4343               "Peak width (standard deviation)"], 
     
    4545 
    4646Iq = """ 
    47     double scaled_dq = (q - q0)/sigma; 
     47    double scaled_dq = (q - peak_pos)/sigma; 
    4848    return exp(-0.5*scaled_dq*scaled_dq); //sqrt(2*M_PI*sigma*sigma); 
    4949    """ 
     
    5151# VR defaults to 1.0 
    5252 
    53 demo = dict(scale=1, background=0, q0=0.05, sigma=0.005) 
     53demo = dict(scale=1, background=0, peak_pos=0.05, sigma=0.005) 
Note: See TracChangeset for help on using the changeset viewer.