Changeset 9ed43f4 in sasmodels for sasmodels/models/bcc_paracrystal.py


Ignore:
Timestamp:
Apr 14, 2017 8:50:29 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f, d77eca8
Parents:
34a9e4e (diff), f2f5413 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ticket-890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/bcc_paracrystal.py

    r925ad6e r69e1afc  
    7979be accurate. 
    8080 
    81 .. figure:: img/bcc_angle_definition.png 
     81.. figure:: img/parallelepiped_angle_definition.png 
    8282 
    83     Orientation of the crystal with respect to the scattering plane. 
     83    Orientation of the crystal with respect to the scattering plane, when  
     84    $\theta = \phi = 0$ the $c$ axis is along the beam direction (the $z$ axis). 
    8485 
    8586References 
     
    99100""" 
    100101 
    101 from numpy import inf 
     102from numpy import inf, pi 
    102103 
    103104name = "bcc_paracrystal" 
     
    122123              ["sld",         "1e-6/Ang^2",  4,    [-inf, inf], "sld",         "Particle scattering length density"], 
    123124              ["sld_solvent", "1e-6/Ang^2",  1,    [-inf, inf], "sld",         "Solvent scattering length density"], 
    124               ["theta",       "degrees",    60,    [-inf, inf], "orientation", "In plane angle"], 
    125               ["phi",         "degrees",    60,    [-inf, inf], "orientation", "Out of plane angle"], 
    126               ["psi",         "degrees",    60,    [-inf, inf], "orientation", "Out of plane angle"] 
     125              ["theta",       "degrees",    60,    [-360, 360], "orientation", "c axis to beam angle"], 
     126              ["phi",         "degrees",    60,    [-360, 360], "orientation", "rotation about beam"], 
     127              ["psi",         "degrees",    60,    [-360, 360], "orientation", "rotation about c axis"] 
    127128             ] 
    128129# pylint: enable=bad-whitespace, line-too-long 
     
    141142    psi_pd=15, psi_pd_n=0, 
    142143    ) 
     144# april 6 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 
     145# add 2d test later 
     146q =4.*pi/220. 
     147tests = [ 
     148    [{ }, 
     149     [0.001, q, 0.215268], [1.46601394721, 2.85851284174, 0.00866710287078]], 
     150    [{'theta':20.0,'phi':30,'psi':40.0},(-0.017,0.035),2082.20264399 ], 
     151    [{'theta':20.0,'phi':30,'psi':40.0},(-0.081,0.011),0.436323144781 ] 
     152    ] 
Note: See TracChangeset for help on using the changeset viewer.