Changeset 1839 for trunk/GSASIImath.py


Ignore:
Timestamp:
May 6, 2015 4:42:51 PM (8 years ago)
Author:
vondreele
Message:

provide graphical display for texture fit, change weighting scheme & suppress negatives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r1837 r1839  
    16561656        for hist in Gangls.keys():
    16571657            Refs = refData[hist]
    1658             wt = 1.0    #   np.sqrt(np.abs(Refs[:,5]))?
     1658            Refs[:,5] = np.where(Refs[:,5]>0.,Refs[:,5],0.)
     1659            wt = 1./np.sqrt(np.max(Refs[:,5],.25))
    16591660            sumObs += np.sum(Refs[:,5])
    16601661            Refs[:,6] = 1.
     
    16841685            Refs = refData[hist]
    16851686            H = Refs[:,:3]
    1686             wt = 1.0    #   np.sqrt(np.abs(Refs[:,5]))?
     1687            wt = 1./np.sqrt(np.max(Refs[:,5],.25))
    16871688            phi,beta = G2lat.CrsAng(H,cell,SGData)
    16881689            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.