Changeset 6cf1cb3 in sasmodels for sasmodels/models/hollow_cylinder.py


Ignore:
Timestamp:
Nov 17, 2015 4:57:11 PM (8 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:
48be770
Parents:
143d596
Message:

hollow cylinder: scale SLD by 1e-6, mark volume and orientation parameters, scale by volume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hollow_cylinder.py

    r84e6942 r6cf1cb3  
    7878#             ["name", "units", default, [lower, upper], "type","description"], 
    7979parameters = [ 
    80               ["radius", "Ang", 30.0, [0, inf], "", "Cylinder radius"], 
    81               ["core_radius", "Ang", 20.0, [0, inf], "", "Hollow core radius"], 
    82               ["length", "Ang", 400.0, [0, inf], "", "Cylinder length"], 
     80              ["radius", "Ang", 30.0, [0, inf], "volume", "Cylinder radius"], 
     81              ["core_radius", "Ang", 20.0, [0, inf], "volume", "Hollow core radius"], 
     82              ["length", "Ang", 400.0, [0, inf], "volume", "Cylinder length"], 
    8383              ["sld", "1/Ang^2", 6.3, [-inf, inf], "", "Cylinder sld"], 
    8484              ["solvent_sld", "1/Ang^2", 1, [-inf, inf], "", "Solvent sld"], 
    85               ["axis_theta", "[deg]", 90, [-360, 360], "", "Theta angle"], 
    86               ["axis_phi", "[deg]", 0, [-360, 360], "", "Phi angle"], 
     85              ["theta", "[deg]", 90, [-360, 360], "orientation", "Theta angle"], 
     86              ["phi", "[deg]", 0, [-360, 360], "orientation", "Phi angle"], 
    8787              ] 
    8888 
     
    9191# parameters for demo 
    9292demo = dict(scale=1.0,background=0.0,length=400.0,radius=30.0,core_radius=20.0, 
    93             sld=6.3,solvent_sld=1,axis_theta=90,axis_phi=0) 
     93            sld=6.3,solvent_sld=1,theta=90,phi=0, 
     94            radius_pd=.2, radius_pd_n=9, 
     95            length_pd=.2, length_pd_n=10, 
     96            theta_pd=10, theta_pd_n=5, 
     97            ) 
    9498 
    9599# For testing against the old sasview models, include the converted parameter 
     
    98102oldpars = dict(scale='scale',background='background',radius='radius', 
    99103               core_radius='core_radius',sld='sldCyl',length='length', 
    100                solvent_sld='sldSolv',axis_phi='axis_phi',axis_theta='axis_theta') 
     104               solvent_sld='sldSolv',phi='axis_phi',theta='axis_theta') 
Note: See TracChangeset for help on using the changeset viewer.