Changeset 48438f9 in sasmodels
- Timestamp:
- Apr 8, 2017 7:51:51 AM (8 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:
- 3401a7a
- Parents:
- 9b79f29 (diff), 85190c2 (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. - Files:
-
- 18 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
explore/jitter.py
r1b693ba r85190c2 25 25 26 26 ax.plot_surface(x, y, z, rstride=4, cstride=4, color='y', alpha=0.5) 27 27 28 28 def draw_shimmy(ax, theta, phi, psi, dtheta, dphi, dpsi): 29 size=[0.1, 0.4, 1.0] 29 size=[0.1, 0.4, 1.0] 30 30 view=[theta, phi, psi] 31 31 shimmy=[0,0,0] 32 32 #draw_shape = draw_parallelepiped 33 33 draw_shape = draw_ellipsoid 34 34 35 35 #np.random.seed(10) 36 #cloud = np.random.randn(10,3) 36 #cloud = np.random.randn(10,3) 37 37 cloud = [ 38 38 [-1, -1, -1], … … 121 121 points = Rz(dpsi)*Ry(dtheta)*Rx(dphi)*points 122 122 points = Rz(phi)*Ry(theta)*Rz(psi)*points 123 123 124 124 x,y,z = [np.array(v).flatten() for v in points] 125 125 ax.plot_trisurf(x, y, triangles=tri, Z=z, color='w', alpha=alpha) -
sasmodels/models/core_shell_bicelle_elliptical.c
rf4f85b3 r44e8a93 1 double form_volume(double radius, double x_core, double thick_rim, double thick_face, double length);2 double Iq(double q,3 double radius,4 double x_core,5 double thick_rim,6 double thick_face,7 double length,8 double core_sld,9 double face_sld,10 double rim_sld,11 double solvent_sld);12 13 14 double Iqxy(double qx, double qy,15 double radius,16 double x_core,17 double thick_rim,18 double thick_face,19 double length,20 double core_sld,21 double face_sld,22 double rim_sld,23 double solvent_sld,24 double theta,25 double phi,26 double psi);27 28 1 // NOTE that "length" here is the full height of the core! 29 double form_volume(double radius, double x_core, double thick_rim, double thick_face, double length) 2 static double 3 form_volume(double r_minor, 4 double x_core, 5 double thick_rim, 6 double thick_face, 7 double length) 30 8 { 31 return M_PI*(r adius+thick_rim)*(radius*x_core+thick_rim)*(length+2.0*thick_face);9 return M_PI*(r_minor+thick_rim)*(r_minor*x_core+thick_rim)*(length+2.0*thick_face); 32 10 } 33 11 34 double Iq(double q, 35 double rad, 36 double x_core, 37 double radthick, 38 double facthick, 39 double length, 40 double rhoc, 41 double rhoh, 42 double rhor, 43 double rhosolv) 12 static double 13 Iq(double q, 14 double r_minor, 15 double x_core, 16 double thick_rim, 17 double thick_face, 18 double length, 19 double rhoc, 20 double rhoh, 21 double rhor, 22 double rhosolv) 44 23 { 45 24 double si1,si2,be1,be2; … … 54 33 //const double vbj=M_PI; 55 34 56 const double r adius_major = rad* x_core;57 const double rA = 0.5*(square(r adius_major) + square(rad));58 const double rB = 0.5*(square(r adius_major) - square(rad));59 const double dr1 = (rhoc-rhoh) *M_PI*r ad*radius_major*(2.0*halfheight);;60 const double dr2 = (rhor-rhosolv)*M_PI*(r ad+radthick)*(radius_major+radthick)*2.0*(halfheight+facthick);61 const double dr3 = (rhoh-rhor) *M_PI*r ad*radius_major*2.0*(halfheight+facthick);62 //const double vol1 = M_PI*r ad*radius_major*(2.0*halfheight);63 //const double vol2 = M_PI*(r ad+radthick)*(radius_major+radthick)*2.0*(halfheight+facthick);64 //const double vol3 = M_PI*r ad*radius_major*2.0*(halfheight+facthick);35 const double r_major = r_minor * x_core; 36 const double rA = 0.5*(square(r_major) + square(r_minor)); 37 const double rB = 0.5*(square(r_major) - square(r_minor)); 38 const double dr1 = (rhoc-rhoh) *M_PI*r_minor*r_major*(2.0*halfheight);; 39 const double dr2 = (rhor-rhosolv)*M_PI*(r_minor+thick_rim)*(r_major+thick_rim)*2.0*(halfheight+thick_face); 40 const double dr3 = (rhoh-rhor) *M_PI*r_minor*r_major*2.0*(halfheight+thick_face); 41 //const double vol1 = M_PI*r_minor*r_major*(2.0*halfheight); 42 //const double vol2 = M_PI*(r_minor+thick_rim)*(r_major+thick_rim)*2.0*(halfheight+thick_face); 43 //const double vol3 = M_PI*r_minor*r_major*2.0*(halfheight+thick_face); 65 44 66 45 //initialize integral … … 74 53 double inner_sum=0; 75 54 double sinarg1 = q*halfheight*cos_alpha; 76 double sinarg2 = q*(halfheight+ facthick)*cos_alpha;55 double sinarg2 = q*(halfheight+thick_face)*cos_alpha; 77 56 si1 = sas_sinx_x(sinarg1); 78 57 si2 = sas_sinx_x(sinarg2); … … 83 62 const double rr = sqrt(rA - rB*cos(beta)); 84 63 double besarg1 = q*rr*sin_alpha; 85 double besarg2 = q*(rr+ radthick)*sin_alpha;64 double besarg2 = q*(rr+thick_rim)*sin_alpha; 86 65 be1 = sas_2J1x_x(besarg1); 87 66 be2 = sas_2J1x_x(besarg2); … … 97 76 } 98 77 99 double 78 static double 100 79 Iqxy(double qx, double qy, 101 double r ad,80 double r_minor, 102 81 double x_core, 103 double radthick,104 double facthick,82 double thick_rim, 83 double thick_face, 105 84 double length, 106 85 double rhoc, … … 118 97 const double dr2 = rhor-rhosolv; 119 98 const double dr3 = rhoh-rhor; 120 const double r adius_major = rad*x_core;99 const double r_major = r_minor*x_core; 121 100 const double halfheight = 0.5*length; 122 const double vol1 = M_PI*r ad*radius_major*length;123 const double vol2 = M_PI*(r ad+radthick)*(radius_major+radthick)*2.0*(halfheight+facthick);124 const double vol3 = M_PI*r ad*radius_major*2.0*(halfheight+facthick);101 const double vol1 = M_PI*r_minor*r_major*length; 102 const double vol2 = M_PI*(r_minor+thick_rim)*(r_major+thick_rim)*2.0*(halfheight+thick_face); 103 const double vol3 = M_PI*r_minor*r_major*2.0*(halfheight+thick_face); 125 104 126 // Compute: r = sqrt((radius_major*zhat)^2 + (radius_minor*yhat)^2) 127 // Given: radius_major = r_ratio * radius_minor 128 // ASSUME the sin_alpha is included in the separate integration over orientation of rod angle 129 const double rad_minor = rad; 130 const double rad_major = rad*x_core; 131 const double r_hat = sqrt(square(rad_major*xhat) + square(rad_minor*yhat)); 132 const double rshell_hat = sqrt(square((rad_major+radthick)*xhat) 133 + square((rad_minor+radthick)*yhat)); 105 // Compute effective radius in rotated coordinates 106 const double r_hat = sqrt(square(r_major*xhat) + square(r_minor*yhat)); 107 const double rshell_hat = sqrt(square((r_major+thick_rim)*xhat) 108 + square((r_minor+thick_rim)*yhat)); 134 109 const double be1 = sas_2J1x_x( q*r_hat ); 135 110 const double be2 = sas_2J1x_x( q*rshell_hat ); 136 111 const double si1 = sas_sinx_x( q*halfheight*zhat ); 137 const double si2 = sas_sinx_x( q*(halfheight + facthick)*zhat );112 const double si2 = sas_sinx_x( q*(halfheight + thick_face)*zhat ); 138 113 const double Aq = square( vol1*dr1*si1*be1 + vol2*dr2*si2*be2 + vol3*dr3*si2*be1); 139 //const double vol = form_volume(radius_minor, r_ratio, length);140 114 return 1.0e-4 * Aq; 141 115 } -
sasmodels/models/parallelepiped.py
r9b79f29 r48438f9 23 23 24 24 The edge of the solid used to have to satisfy the condition that $A < B < C$. 25 After some improvements to the effective radius calculation, used with an S(Q),26 it is beleived that this is no longer the case.25 After some improvements to the effective radius calculation, used with 26 an S(Q), it is beleived that this is no longer the case. 27 27 28 28 The 1D scattering intensity $I(q)$ is calculated as: … … 72 72 73 73 NB: The 2nd virial coefficient of the parallelepiped is calculated based on 74 the averaged effective radius, after appropriately 75 sorting the three dimensions, to give an oblate or prolate particle, $(=\sqrt{A B /\pi})$ and74 the averaged effective radius, after appropriately sorting the three 75 dimensions, to give an oblate or prolate particle, $(=\sqrt{AB/\pi})$ and 76 76 length $(= C)$ values, and used as the effective radius for 77 77 $S(q)$ when $P(q) \cdot S(q)$ is applied. … … 106 106 .. figure:: img/parallelepiped_angle_definition.png 107 107 108 Definition of the angles for oriented parallelepiped, shown with $A < B <C$.108 Definition of the angles for oriented parallelepiped, shown with $A<B<C$. 109 109 110 110 .. figure:: img/parallelepiped_angle_projection.png … … 167 167 ---------------------------- 168 168 169 * **Author:** This model is based on form factor calculations implemented in a c-library170 provided by the NIST Center for Neutron Research (Kline, 2006).169 * **Author:** This model is based on form factor calculations implemented 170 in a c-library provided by the NIST Center for Neutron Research (Kline, 2006). 171 171 * **Last Modified by:** Paul Kienzle **Date:** April 05, 2017 172 172 * **Last Reviewed by:** Richard Heenan **Date:** April 06, 2017 -
sasmodels/models/sc_paracrystal.py
r9b79f29 r48438f9 85 85 .. figure:: img/parallelepiped_angle_definition.png 86 86 87 Orientation of the crystal with respect to the scattering plane, when 87 Orientation of the crystal with respect to the scattering plane, when 88 88 $\theta = \phi = 0$ the $c$ axis is along the beam direction (the $z$ axis). 89 89 -
sasmodels/models/stacked_disks.py
r9b79f29 r48438f9 58 58 and $\sigma_d$ = the Gaussian standard deviation of the d-spacing (*sigma_d*). 59 59 Note that $D\cos(\alpha)$ is the component of $D$ parallel to $q$ and the last 60 term in the equation above is effectively a Debye-Waller factor term. 60 term in the equation above is effectively a Debye-Waller factor term. 61 61 62 62 .. note:: … … 158 158 tests = [ 159 159 # Accuracy tests based on content in test/utest_extra_models.py. 160 # Added 2 tests with n_stacked = 5 using SasView 3.1.2 - PDB; for which alas q=0.001 values seem closer to n_stacked=1 not 5, changed assuming my 4.1 code OK, RKH 160 # Added 2 tests with n_stacked = 5 using SasView 3.1.2 - PDB; 161 # for which alas q=0.001 values seem closer to n_stacked=1 not 5, 162 # changed assuming my 4.1 code OK, RKH 161 163 [{'thick_core': 10.0, 162 164 'thick_layer': 15.0, -
sasmodels/models/triaxial_ellipsoid.py
r9b79f29 r48438f9 16 16 \frac{X^2}{R_a^2} + \frac{Y^2}{R_b^2} + \frac{Z^2}{R_c^2} = 1 17 17 18 the scattering for randomly oriented particles is defined by the average over all orientations $\Omega$ of: 18 the scattering for randomly oriented particles is defined by the average over 19 all orientations $\Omega$ of: 19 20 20 21 .. math:: 21 22 22 P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega \Phi^2(qr) d\Omega + \text{background} 23 P(q) = \text{scale}(\Delta\rho)^2\frac{V}{4 \pi}\int_\Omega\Phi^2(qr)\,d\Omega 24 + \text{background} 23 25 24 26 where … … 38 40 .. math:: 39 41 40 \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) \cos \gamma\,d\gamma d\phi 42 \langle\Phi^2\rangle = \int_0^{2\pi} \int_{-\pi/2}^{\pi/2} \Phi^2(qr) 43 \cos \gamma\,d\gamma d\phi 41 44 42 45 with $e = \cos\gamma \sin\phi$, $f = \cos\gamma \cos\phi$ and $g = \sin\gamma$. … … 69 72 .. figure:: img/elliptical_cylinder_angle_definition.png 70 73 71 Definition of angles for oriented triaxial ellipsoid, where radii shown here are $a < b << c$ 72 and angle $\Psi$ is a rotation around the axis of the particle. 74 Definition of angles for oriented triaxial ellipsoid, where radii shown 75 here are $a < b << c$ and angle $\Psi$ is a rotation around the axis 76 of the particle. 73 77 74 78 The angle $\psi$ is the rotational angle around its own $c$ axis … … 115 119 * **Last Reviewed by:** Paul Kienzle & Richard Heenan **Date:** April 4, 2017 116 120 117 """118 119 121 from numpy import inf, sin, cos, pi 120 122 … … 122 124 title = "Ellipsoid of uniform scattering length density with three independent axes." 123 125 124 description = """ \126 description = """ 125 127 Note: During fitting ensure that the inequality ra<rb<rc is not 126 128 violated. Otherwise the calculation will … … 157 159 from .ellipsoid import ER as ellipsoid_ER 158 160 159 # now that radii can be in any size order, radii need sorting a,b,c where a~b and c is either much smaller160 # or much larger161 # now that radii can be in any size order, radii need sorting a,b,c 162 # where a~b and c is either much smaller or much larger 161 163 radii = np.vstack((radius_equat_major, radius_equat_minor, radius_polar)) 162 164 radii = np.sort(radii, axis=0) … … 178 180 179 181 q = 0.1 180 # april 6 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 182 # april 6 2017, rkh add unit tests 183 # NOT compared with any other calc method, assume correct! 181 184 # add 2d test after pull #890 182 185 qx = q*cos(pi/6.0) -
sasmodels/models/barbell.py
r0b56f38 r9b79f29 108 108 ["radius", "Ang", 20, [0, inf], "volume", "Cylindrical bar radius"], 109 109 ["length", "Ang", 400, [0, inf], "volume", "Cylinder bar length"], 110 ["theta", "degrees", 60, [- inf, inf], "orientation", "In planeangle"],111 ["phi", "degrees", 60, [- inf, inf], "orientation", "Out of plane angle"],110 ["theta", "degrees", 60, [-360, 360], "orientation", "Barbell axis to beam angle"], 111 ["phi", "degrees", 60, [-360, 360], "orientation", "Rotation about beam"], 112 112 ] 113 113 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/bcc_paracrystal.py
r1f65db5 r9b79f29 123 123 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 124 124 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 125 ["theta", "degrees", 60, [- inf, inf], "orientation", "In planeangle"],126 ["phi", "degrees", 60, [- inf, inf], "orientation", "Out of plane angle"],127 ["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"] 128 128 ] 129 129 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/capped_cylinder.py
r0b56f38 r9b79f29 129 129 ["radius_cap", "Ang", 20, [0, inf], "volume", "Cap radius"], 130 130 ["length", "Ang", 400, [0, inf], "volume", "Cylinder length"], 131 ["theta", "degrees", 60, [- inf, inf], "orientation", "inclinationangle"],132 ["phi", "degrees", 60, [- inf, inf], "orientation", "deflection angle"],131 ["theta", "degrees", 60, [-360, 360], "orientation", "cylinder axis to beam angle"], 132 ["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"], 133 133 ] 134 134 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/core_shell_bicelle.py
r0b56f38 r9b79f29 47 47 .. math:: 48 48 49 49 \begin{align} 50 50 F(Q,\alpha) = &\bigg[ 51 51 (\rho_c - \rho_f) V_c \frac{2J_1(QRsin \alpha)}{QRsin\alpha}\frac{sin(QLcos\alpha/2)}{Q(L/2)cos\alpha} \\ … … 69 69 .. figure:: img/cylinder_angle_definition.jpg 70 70 71 Definition of the angles for the oriented core shell bicelle tmodel. 71 Definition of the angles for the oriented core shell bicelle model, 72 note that the cylinder axis of the bicelle starts along the beam direction 73 when $\theta = \phi = 0$. 72 74 73 75 … … 135 137 ["sld_rim", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Cylinder rim scattering length density"], 136 138 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 137 ["theta", "degrees", 90, [- inf, inf], "orientation", "In planeangle"],138 ["phi", "degrees", 0, [- inf, inf], "orientation", "Out of plane angle"],139 ["theta", "degrees", 90, [-360, 360], "orientation", "cylinder axis to beam angle"], 140 ["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"] 139 141 ] 140 142 … … 160 162 qy = q*sin(pi/6.0) 161 163 tests = [[{}, 0.05, 7.4883545957], 162 [{'theta':80., 'phi':10.}, (qx, qy), 2.81048892474 ] ,164 [{'theta':80., 'phi':10.}, (qx, qy), 2.81048892474 ] 163 165 ] 164 166 del qx, qy # not necessary to delete, but cleaner -
sasmodels/models/core_shell_bicelle_elliptical.py
r16a8c63 r9b79f29 119 119 ["radius", "Ang", 30, [0, inf], "volume", "Cylinder core radius"], 120 120 ["x_core", "None", 3, [0, inf], "volume", "axial ratio of core, X = r_polar/r_equatorial"], 121 ["thick_rim", "Ang", 8, [0, inf], "volume", "Rim shell thickness"],122 ["thick_face", "Ang", 14, [0, inf], "volume", "Cylinder face thickness"],123 ["length", "Ang", 50, [0, inf], "volume", "Cylinder length"],121 ["thick_rim", "Ang", 8, [0, inf], "volume", "Rim shell thickness"], 122 ["thick_face", "Ang", 14, [0, inf], "volume", "Cylinder face thickness"], 123 ["length", "Ang", 50, [0, inf], "volume", "Cylinder length"], 124 124 ["sld_core", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Cylinder core scattering length density"], 125 125 ["sld_face", "1e-6/Ang^2", 7, [-inf, inf], "sld", "Cylinder face scattering length density"], 126 126 ["sld_rim", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Cylinder rim scattering length density"], 127 127 ["sld_solvent", "1e-6/Ang^2", 6, [-inf, inf], "sld", "Solvent scattering length density"], 128 ["theta", "degrees", 90, [-360, 360], "orientation", "In planeangle"],129 ["phi", "degrees", 0, [-360, 360], "orientation", "Out of plane angle"],130 ["psi", "degrees", 0, [-360, 360], "orientation", "Major axis angle relative to Q"],128 ["theta", "degrees", 90.0, [-360, 360], "orientation", "cylinder axis to beam angle"], 129 ["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"], 130 ["psi", "degrees", 0, [-360, 360], "orientation", "rotation about cylinder axis"] 131 131 ] 132 132 -
sasmodels/models/core_shell_cylinder.py
r0b56f38 r9b79f29 117 117 ["length", "Ang", 400, [0, inf], "volume", 118 118 "Cylinder length"], 119 ["theta", "degrees", 60, [- inf, inf], "orientation",120 " In planeangle"],121 ["phi", "degrees", 60, [-inf, inf], "orientation",122 " Out of plane angle"],119 ["theta", "degrees", 60, [-360, 360], "orientation", 120 "cylinder axis to beam angle"], 121 ["phi", "degrees", 60, [-360, 360], "orientation", 122 "rotation about beam"], 123 123 ] 124 124 -
sasmodels/models/core_shell_ellipsoid.py
rdaeef4c r9b79f29 132 132 ["sld_shell", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Shell scattering length density"], 133 133 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "sld", "Solvent scattering length density"], 134 ["theta", "degrees", 0, [- inf, inf], "orientation", "Oblate orientation wrt incoming beam"],135 ["phi", "degrees", 0, [- inf, inf], "orientation", "Oblate orientation in the plane of the detector"],134 ["theta", "degrees", 0, [-360, 360], "orientation", "elipsoid axis to beam angle"], 135 ["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"], 136 136 ] 137 137 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/core_shell_parallelepiped.py
r1f65db5 r9b79f29 153 153 ["thick_rim_c", "Ang", 10, [0, inf], "volume", 154 154 "Thickness of C rim"], 155 ["theta", "degrees", 0, [- inf, inf], "orientation",156 " In planeangle"],157 ["phi", "degrees", 0, [- inf, inf], "orientation",158 " Out of plane angle"],159 ["psi", "degrees", 0, [- inf, inf], "orientation",160 " Rotation angle around its own c axis against q plane"],155 ["theta", "degrees", 0, [-360, 360], "orientation", 156 "c axis to beam angle"], 157 ["phi", "degrees", 0, [-360, 360], "orientation", 158 "rotation about beam"], 159 ["psi", "degrees", 0, [-360, 360], "orientation", 160 "rotation about c axis"], 161 161 ] 162 162 -
sasmodels/models/cylinder.py
r3fd0499 r9b79f29 127 127 ["length", "Ang", 400, [0, inf], "volume", 128 128 "Cylinder length"], 129 ["theta", "degrees", 60, [- inf, inf], "orientation",130 " latitude"],131 ["phi", "degrees", 60, [-inf, inf], "orientation",132 " longitude"],129 ["theta", "degrees", 60, [-360, 360], "orientation", 130 "cylinder axis to beam angle"], 131 ["phi", "degrees", 60, [-360, 360], "orientation", 132 "rotation about beam"], 133 133 ] 134 134 -
sasmodels/models/ellipsoid.py
r0b56f38 r9b79f29 151 151 ["radius_equatorial", "Ang", 400, [0, inf], "volume", 152 152 "Equatorial radius"], 153 ["theta", "degrees", 60, [- inf, inf], "orientation",154 " In planeangle"],155 ["phi", "degrees", 60, [- inf, inf], "orientation",156 " Out of plane angle"],153 ["theta", "degrees", 60, [-360, 360], "orientation", 154 "ellipsoid axis to beam angle"], 155 ["phi", "degrees", 60, [-360, 360], "orientation", 156 "rotation about beam"], 157 157 ] 158 158 -
sasmodels/models/elliptical_cylinder.py
r16a8c63 r9b79f29 126 126 ["sld", "1e-6/Ang^2", 4.0, [-inf, inf], "sld", "Cylinder scattering length density"], 127 127 ["sld_solvent", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", "Solvent scattering length density"], 128 ["theta", "degrees", 90.0, [-360, 360], "orientation", " In planeangle"],129 ["phi", "degrees", 0, [-360, 360], "orientation", " Out of plane angle"],130 ["psi", "degrees", 0, [-360, 360], "orientation", " Major axis angle relative to Q"]]128 ["theta", "degrees", 90.0, [-360, 360], "orientation", "cylinder axis to beam angle"], 129 ["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"], 130 ["psi", "degrees", 0, [-360, 360], "orientation", "rotation about cylinder axis"]] 131 131 132 132 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/fcc_paracrystal.py
r1f65db5 r9b79f29 111 111 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 112 112 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 113 ["theta", "degrees", 60, [-inf, inf], "orientation", "In planeangle"],114 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"],115 ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"]113 ["theta", "degrees", 60, [-360, 360], "orientation", "c axis to beam angle"], 114 ["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"], 115 ["psi", "degrees", 60, [-360, 360], "orientation", "rotation about c axis"] 116 116 ] 117 117 # pylint: enable=bad-whitespace, line-too-long -
sasmodels/models/hollow_cylinder.py
r0b56f38 r9b79f29 82 82 ["sld", "1/Ang^2", 6.3, [-inf, inf], "sld", "Cylinder sld"], 83 83 ["sld_solvent", "1/Ang^2", 1, [-inf, inf], "sld", "Solvent sld"], 84 ["theta", "degrees", 90, [-360, 360], "orientation", " Thetaangle"],85 ["phi", "degrees", 0, [-360, 360], "orientation", " Phi angle"],84 ["theta", "degrees", 90, [-360, 360], "orientation", "Cylinder axis to beam angle"], 85 ["phi", "degrees", 0, [-360, 360], "orientation", "Rotation about beam"], 86 86 ] 87 87 # pylint: enable=bad-whitespace, line-too-long
Note: See TracChangeset
for help on using the changeset viewer.