Skip to content

Commit b132d27

Browse files
committed
Add truncated octahedron (python+C) model updated
1 parent 54ed97c commit b132d27

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sasmodels/models/octahedron_truncated.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@
164164
CC = 1./(2*(qx*qx-qy*qy)*(qx*qx-qz*qz))*((qx-qz)*sin(qx*(1.-t)-qz*t)+(qx+qz)*sin(qx*(1.-t)+qz*t))+
165165
1./(2*(qy*qy-qz*qz)*(qy*qy-qx*qx))*((qy-qz)*sin(qy*(1.-t)-qz*t)+(qy+qz)*sin(qy*(1.-t)+qz*t));
166166
167-
Normalisation to 1 of AP at q = 0 (division by factor 4/3).
168-
169-
Qx = q * sin_theta * cos_phi;
170-
Qy = q * sin_theta * sin_phi;
171-
Qz = q * cos_theta;
172-
qx = Qx * length_a;
173-
qy = Qy * length_b;
174-
qz = Qz * length_c;
167+
Normalisation to 1 of AP at q = 0 (division by factor 4/3)::
168+
169+
Qx = q * sin_theta * cos_phi;
170+
Qy = q * sin_theta * sin_phi;
171+
Qz = q * cos_theta;
172+
qx = Qx * length_a;
173+
qy = Qy * length_b;
174+
qz = Qz * length_c;
175175
176176
0 < t < 1
177177
"""

0 commit comments

Comments
 (0)