Skip to content

Commit 8d66923

Browse files
author
Paul Kienzle
committed
Change limits to θ in [-180, 180] for all models
1 parent 8c9db71 commit 8d66923

21 files changed

+21
-21
lines changed

sasmodels/models/barbell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
["radius_bell", "Ang", 40, [0, inf], "volume", "Spherical bell radius"],
113113
["radius", "Ang", 20, [0, inf], "volume", "Cylindrical bar radius"],
114114
["length", "Ang", 400, [0, inf], "volume", "Cylinder bar length"],
115-
["theta", "degrees", 60, [-360, 360], "orientation", "Barbell axis to beam angle"],
115+
["theta", "degrees", 60, [-180, 180], "orientation", "Barbell axis to beam angle"],
116116
["phi", "degrees", 60, [-360, 360], "orientation", "Rotation about beam"],
117117
]
118118
# pylint: enable=bad-whitespace, line-too-long

sasmodels/models/bcc_paracrystal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
["radius", "Ang", 40, [0, inf], "volume", "Particle radius"],
189189
["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"],
190190
["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"],
191-
["theta", "degrees", 60, [-360, 360], "orientation", "c axis to beam angle"],
191+
["theta", "degrees", 60, [-180, 180], "orientation", "c axis to beam angle"],
192192
["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"],
193193
["psi", "degrees", 60, [-360, 360], "orientation", "rotation about c axis"]
194194
]

sasmodels/models/capped_cylinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
# both models, one would be a pill.
133133
["radius_cap", "Ang", 20, [0, inf], "volume", "Cap radius"],
134134
["length", "Ang", 400, [0, inf], "volume", "Cylinder length"],
135-
["theta", "degrees", 60, [-360, 360], "orientation", "cylinder axis to beam angle"],
135+
["theta", "degrees", 60, [-180, 180], "orientation", "cylinder axis to beam angle"],
136136
["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"],
137137
]
138138
# pylint: enable=bad-whitespace, line-too-long

sasmodels/models/core_shell_bicelle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
["sld_face", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Cylinder face scattering length density"],
147147
["sld_rim", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Cylinder rim scattering length density"],
148148
["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"],
149-
["theta", "degrees", 90, [-360, 360], "orientation", "cylinder axis to beam angle"],
149+
["theta", "degrees", 90, [-180, 180], "orientation", "cylinder axis to beam angle"],
150150
["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"]
151151
]
152152

sasmodels/models/core_shell_bicelle_elliptical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
["sld_face", "1e-6/Ang^2", 7, [-inf, inf], "sld", "Cylinder face scattering length density"],
138138
["sld_rim", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Cylinder rim scattering length density"],
139139
["sld_solvent", "1e-6/Ang^2", 6, [-inf, inf], "sld", "Solvent scattering length density"],
140-
["theta", "degrees", 90.0, [-360, 360], "orientation", "Cylinder axis to beam angle"],
140+
["theta", "degrees", 90.0, [-180, 180], "orientation", "Cylinder axis to beam angle"],
141141
["phi", "degrees", 0, [-360, 360], "orientation", "Rotation about beam"],
142142
["psi", "degrees", 0, [-360, 360], "orientation", "Rotation about cylinder axis"]
143143
]

sasmodels/models/core_shell_bicelle_elliptical_belt_rough.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
["sld_rim", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Cylinder rim scattering length density"],
151151
["sld_solvent", "1e-6/Ang^2", 6, [-inf, inf], "sld", "Solvent scattering length density"],
152152
["sigma", "Ang", 0, [0, inf], "", "Interfacial roughness"],
153-
["theta", "degrees", 90.0, [-360, 360], "orientation", "Cylinder axis to beam angle"],
153+
["theta", "degrees", 90.0, [-180, 180], "orientation", "Cylinder axis to beam angle"],
154154
["phi", "degrees", 0, [-360, 360], "orientation", "Rotation about beam"],
155155
["psi", "degrees", 0, [-360, 360], "orientation", "Rotation about cylinder axis"],
156156
]

sasmodels/models/core_shell_cylinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"Cylinder shell thickness"],
128128
["length", "Ang", 400, [0, inf], "volume",
129129
"Cylinder length"],
130-
["theta", "degrees", 60, [-360, 360], "orientation",
130+
["theta", "degrees", 60, [-180, 180], "orientation",
131131
"cylinder axis to beam angle"],
132132
["phi", "degrees", 60, [-360, 360], "orientation",
133133
"rotation about beam"],

sasmodels/models/core_shell_ellipsoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
["sld_core", "1e-6/Ang^2", 2, [-inf, inf], "sld", "Core scattering length density"],
145145
["sld_shell", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Shell scattering length density"],
146146
["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "sld", "Solvent scattering length density"],
147-
["theta", "degrees", 0, [-360, 360], "orientation", "elipsoid axis to beam angle"],
147+
["theta", "degrees", 0, [-180, 180], "orientation", "elipsoid axis to beam angle"],
148148
["phi", "degrees", 0, [-360, 360], "orientation", "rotation about beam"],
149149
]
150150
# pylint: enable=bad-whitespace, line-too-long

sasmodels/models/core_shell_parallelepiped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"Thickness of B rim"],
217217
["thick_rim_c", "Ang", 10, [0, inf], "volume",
218218
"Thickness of C rim"],
219-
["theta", "degrees", 0, [-360, 360], "orientation",
219+
["theta", "degrees", 0, [-180, 180], "orientation",
220220
"c axis to beam angle"],
221221
["phi", "degrees", 0, [-360, 360], "orientation",
222222
"rotation about beam"],

sasmodels/models/cylinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"],
138138
["radius", "Ang", 20, [0, inf], "volume", "Cylinder radius"],
139139
["length", "Ang", 400, [0, inf], "volume", "Cylinder length"],
140-
["theta", "degrees", 60, [-360, 360], "orientation", "cylinder axis to beam angle"],
140+
["theta", "degrees", 60, [-180, 180], "orientation", "cylinder axis to beam angle"],
141141
["phi", "degrees", 60, [-360, 360], "orientation", "rotation about beam"],
142142
]
143143
# pylint: enable=bad-whitespace, line-too-long

0 commit comments

Comments
 (0)