Changeset 54 for trunk/GSASIIcomp.py


Ignore:
Timestamp:
Apr 27, 2010 12:03:13 PM (13 years ago)
Author:
vondreel
Message:

pick, motion bugs fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIcomp.py

    r53 r54  
    13551355    return ring
    13561356   
     1357def 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   
    13571370def calcDist(radii,tth):
    13581371    stth = sind(tth)
Note: See TracChangeset for help on using the changeset viewer.