Changeset 9ed43f4 in sasmodels for sasmodels/models/bcc_paracrystal.py
- Timestamp:
- Apr 14, 2017 8:50:29 AM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/bcc_paracrystal.py
r925ad6e r69e1afc 79 79 be accurate. 80 80 81 .. figure:: img/ bcc_angle_definition.png81 .. figure:: img/parallelepiped_angle_definition.png 82 82 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). 84 85 85 86 References … … 99 100 """ 100 101 101 from numpy import inf 102 from numpy import inf, pi 102 103 103 104 name = "bcc_paracrystal" … … 122 123 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 123 124 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 124 ["theta", "degrees", 60, [- inf, inf], "orientation", "In planeangle"],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"] 127 128 ] 128 129 # pylint: enable=bad-whitespace, line-too-long … … 141 142 psi_pd=15, psi_pd_n=0, 142 143 ) 144 # april 6 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 145 # add 2d test later 146 q =4.*pi/220. 147 tests = [ 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.