Changeset 1845


Ignore:
Timestamp:
May 13, 2015 2:45:07 PM (7 years ago)
Author:
vondreele
Message:

fix to texture refine weights

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r1839 r1845  
    16571657            Refs = refData[hist]
    16581658            Refs[:,5] = np.where(Refs[:,5]>0.,Refs[:,5],0.)
    1659             wt = 1./np.sqrt(np.max(Refs[:,5],.25))
    1660             sumObs += np.sum(Refs[:,5])
     1659            wt = 1./np.sqrt(np.max(Refs[:,4],.25))
     1660#            wt = 1./np.max(Refs[:,4],.25)
     1661            sumObs += np.sum(wt*Refs[:,5])
    16611662            Refs[:,6] = 1.
    16621663            H = Refs[:,:3]
     
    16851686            Refs = refData[hist]
    16861687            H = Refs[:,:3]
    1687             wt = 1./np.sqrt(np.max(Refs[:,5],.25))
     1688            wt = 1./np.sqrt(np.max(Refs[:,4],.25))
     1689#            wt = 1./np.max(Refs[:,4],.25)
    16881690            phi,beta = G2lat.CrsAng(H,cell,SGData)
    16891691            psi,gam,dPdA,dGdA = G2lat.SamAng(Refs[:,3]/2.,Gangls[hist],Sangls,False) #assume not Bragg-Brentano!
Note: See TracChangeset for help on using the changeset viewer.