Changeset 997 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Jul 17, 2013 4:11:37 PM (10 years ago)
Author:
vondreele
Message:

implement export of hkl files extracted from powder data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r945 r997  
    443443    sig = lambda Th,U,V,W: 1.17741*math.sqrt(max(0.001,U*tand(Th)**2+V*tand(Th)+W))*math.pi/180.
    444444    gam = lambda Th,X,Y: (X/cosd(Th)+Y*tand(Th))*math.pi/180.
    445     gamFW = lambda s,g: math.exp(math.log(s**5+2.69269*s**4*g+2.42843*s**3*g**2+4.47163*s**2*g**3+0.07842*s*g**4+g**5)/5.)
    446445    s = sig(TTh/2.,Inst['U'][1],Inst['V'][1],Inst['W'][1])*100.
    447446    g = gam(TTh/2.,Inst['X'][1],Inst['Y'][1])*100.
    448     return gamFW(g,s)   
     447    return getgamFW(g,s)
     448   
     449def getgamFW(g,s):
     450    'needs a doc string'
     451    gamFW = lambda s,g: math.exp(math.log(s**5+2.69269*s**4*g+2.42843*s**3*g**2+4.47163*s**2*g**3+0.07842*s*g**4+g**5)/5.)
     452    return gamFW(g,s)
    449453               
    450454def getFCJVoigt(pos,intens,sig,gam,shl,xdata):   
Note: See TracChangeset for help on using the changeset viewer.