Changes in sasmodels/models/fcc_paracrystal.py [69e1afc:925ad6e] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fcc_paracrystal.py
r69e1afc r925ad6e 76 76 2D model computation. 77 77 78 .. figure:: img/ parallelepiped_angle_definition.png78 .. figure:: img/bcc_angle_definition.png 79 79 80 Orientation of the crystal with respect to the scattering plane, when 81 $\theta = \phi = 0$ the $c$ axis is along the beam direction (the $z$ axis). 80 Orientation of the crystal with respect to the scattering plane. 82 81 83 82 References … … 91 90 """ 92 91 93 from numpy import inf , pi92 from numpy import inf 94 93 95 94 name = "fcc_paracrystal" … … 111 110 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 112 111 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 113 ["theta", "degrees", 60, [-360, 360], "orientation", "c axis to beamangle"],114 ["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"],115 ["psi", "degrees", 60, [-360, 360], "orientation", "rotation about c axis"]112 ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 113 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 114 ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"] 116 115 ] 117 116 # pylint: enable=bad-whitespace, line-too-long … … 129 128 psi_pd=15, psi_pd_n=0, 130 129 ) 131 # april 10 2017, rkh add unit tests, NOT compared with any other calc method, assume correct!132 q =4.*pi/220.133 tests = [134 [{ },135 [0.001, q, 0.215268], [0.275164706668, 5.7776842567, 0.00958167119232]],136 [{}, (-0.047,-0.007), 238.103096286],137 [{}, (0.053,0.063), 0.863609587796 ],138 ]
Note: See TracChangeset
for help on using the changeset viewer.