Changeset 1464
- Timestamp:
- Aug 17, 2014 4:05:35 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r1462 r1464 2049 2049 2050 2050 ''' 2051 return ins['sig-0']+ins['sig-1']*dsp**2+ins['sig-2']*dsp**4+ins['sig-q'] *dsp2051 return ins['sig-0']+ins['sig-1']*dsp**2+ins['sig-2']*dsp**4+ins['sig-q']/dsp**2 2052 2052 2053 2053 def getTOFsigDeriv(dsp): … … 2059 2059 2060 2060 ''' 2061 return 1.0,dsp**2,dsp**4, dsp2061 return 1.0,dsp**2,dsp**4,1./dsp**2 2062 2062 2063 2063 def getTOFgamma(ins,dsp): … … 2093 2093 2094 2094 ''' 2095 return ins['beta-0']+ins['beta-1']/dsp**4+ins['beta-q']/dsp 2095 return ins['beta-0']+ins['beta-1']/dsp**4+ins['beta-q']/dsp**2 2096 2096 2097 2097 def getTOFbetaDeriv(dsp): … … 2103 2103 2104 2104 ''' 2105 return 1.0,1./dsp**4,1./dsp 2105 return 1.0,1./dsp**4,1./dsp**2 2106 2106 2107 2107 def getTOFalpha(ins,dsp): -
trunk/GSASIIpwd.py
r1462 r1464 480 480 'needs a doc string' 481 481 sig = lambda Th,U,V,W: 1.17741*math.sqrt(max(0.001,U*tand(Th)**2+V*tand(Th)+W))*math.pi/180. 482 sigTOF = lambda dsp,S0,S1,S2,Sq: S0+S1*dsp**2+S2*dsp**4+Sq *dsp482 sigTOF = lambda dsp,S0,S1,S2,Sq: S0+S1*dsp**2+S2*dsp**4+Sq/dsp**2 483 483 gam = lambda Th,X,Y: (X/cosd(Th)+Y*tand(Th))*math.pi/180. 484 484 gamTOF = lambda dsp,X,Y: X*dsp+Y*dsp**2 -
trunk/GSASIIstrMath.py
r1462 r1464 1612 1612 def GetReflSigGamTOF(refl,G,GB,phfx,calcControls,parmDict): 1613 1613 sig = parmDict[hfx+'sig-0']+parmDict[hfx+'sig-1']*refl[4]**2+ \ 1614 parmDict[hfx+'sig-2']*refl[4]**4+parmDict[hfx+'sig-q'] *refl[4]1614 parmDict[hfx+'sig-2']*refl[4]**4+parmDict[hfx+'sig-q']/refl[4]**2 1615 1615 gam = parmDict[hfx+'X']*refl[4]+parmDict[hfx+'Y']*refl[4]**2 1616 1616 Ssig,Sgam = GetSampleSigGam(refl,0.0,G,GB,hfx,phfx,calcControls,parmDict) … … 1623 1623 def GetReflAlpBet(refl,hfx,parmDict): 1624 1624 alp = parmDict[hfx+'alpha']/refl[4] 1625 bet = parmDict[hfx+'beta-0']+parmDict[hfx+'beta-1']/refl[4]**4+parmDict[hfx+'beta-q']/refl[4] 1625 bet = parmDict[hfx+'beta-0']+parmDict[hfx+'beta-1']/refl[4]**4+parmDict[hfx+'beta-q']/refl[4]**2 1626 1626 return alp,bet 1627 1627 … … 1883 1883 hfx+'Zero':[dpdZ,'pos'],hfx+'X':[refl[4],'gam'],hfx+'Y':[refl[4]**2,'gam'], 1884 1884 hfx+'alpha':[1./refl[4],'alp'],hfx+'beta-0':[1.0,'bet'],hfx+'beta-1':[1./refl[4]**4,'bet'], 1885 hfx+'beta-q':[1./refl[4] ,'bet'],hfx+'sig-0':[1.0,'sig'],hfx+'sig-1':[refl[4]**2,'sig'],1886 hfx+'sig-2':[refl[4]**4,'sig'],hfx+'sig-q':[ refl[4],'sig'],1885 hfx+'beta-q':[1./refl[4]**2,'bet'],hfx+'sig-0':[1.0,'sig'],hfx+'sig-1':[refl[4]**2,'sig'], 1886 hfx+'sig-2':[refl[4]**4,'sig'],hfx+'sig-q':[1./refl[4]**2,'sig'], 1887 1887 hfx+'Absorption':[dFdAb,'int'],hfx+'Extinction':[dFdEx,'int'],} 1888 1888 for name in names:
Note: See TracChangeset
for help on using the changeset viewer.