Changeset 54 for trunk/GSASIIcomp.py
- Timestamp:
- Apr 27, 2010 12:03:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIcomp.py
r53 r54 1355 1355 return ring 1356 1356 1357 def makeIdealRing(ellipse): 1358 cent,phi,radii = ellipse 1359 cphi = cosd(phi) 1360 sphi = sind(phi) 1361 ring = [] 1362 for a in range(0,360,2): 1363 x = radii[0]*cosd(a) 1364 y = radii[1]*sind(a) 1365 X = (cphi*x-sphi*y+cent[0]) 1366 Y = (sphi*x+cphi*y+cent[1]) 1367 ring.append([X,Y]) 1368 return ring 1369 1357 1370 def calcDist(radii,tth): 1358 1371 stth = sind(tth)
Note: See TracChangeset
for help on using the changeset viewer.