Ignore:
Timestamp:
Jun 1, 2015 11:31:55 AM (7 years ago)
Author:
vondreele
Message:

minor formatting change for TOF peak fitting
fix powder extinction & derivatives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r1864 r1874  
    14031403    exb = 1.0
    14041404    if xfac > -1.:
    1405         exb = 1./(1.+xfac)
     1405        exb = 1./np.sqrt(1.+xfac)
    14061406    exl = 1.0
    14071407    if 0 < xfac <= 1.:
     
    14301430    dbde = -500.*flv2
    14311431    if xfac > -1.:
    1432         dbde = -flv2/(1.+xfac)**3
     1432        dbde = -0.5*flv2/np.sqrt(1.+xfac)**3
    14331433    dlde = 0.
    14341434    if 0 < xfac <= 1.:
     
    14401440       
    14411441    return dbde*sth2+dlde*(1.-sth2)
    1442 
    1443 
    1444 #    delt = 0.01
    1445 #    parmDict[phfx+'Extinction'] += delt
    1446 #    plus = GetPwdrExt(refl,im,pfx,phfx,hfx,calcControls,parmDict)
    1447 #    parmDict[phfx+'Extinction'] -= 2.*delt
    1448 #    minus = GetPwdrExt(refl,im,pfx,phfx,hfx,calcControls,parmDict)
    1449 #    parmDict[phfx+'Extinction'] += delt
    1450 #    return (plus-minus)/(2.*delt)   
    14511442   
    14521443def GetIntensityCorr(refl,im,uniq,G,g,pfx,phfx,hfx,SGData,calcControls,parmDict):
Note: See TracChangeset for help on using the changeset viewer.