Changeset 1875 for trunk/GSASIIstrMath.py
- Timestamp:
- Jun 2, 2015 2:36:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMath.py
r1874 r1875 856 856 FPP = np.repeat(FPP.T,len(SGT),axis=0) 857 857 Bab = np.repeat(parmDict[phfx+'BabA']*np.exp(-parmDict[phfx+'BabU']*SQfactor),len(SGT)) 858 Flack = 1.-2.*parmDict[phfx+'Flack'] 858 859 Tindx = np.array([refDict['FF']['El'].index(El) for El in Tdata]) 859 860 FF = np.repeat(refDict['FF']['FF'][iBeg:iFin].T[Tindx].T,len(SGT),axis=0) … … 868 869 Tuij = np.where(HbH<1.,np.exp(HbH),1.0).T 869 870 Tcorr = Tiso*Tuij*Mdata*Fdata/len(SGMT) 870 fa = np.array([((FF+FP).T-Bab).T*cosp*Tcorr,-F PP*sinp*Tcorr])871 fa = np.array([((FF+FP).T-Bab).T*cosp*Tcorr,-Flack*FPP*sinp*Tcorr]) 871 872 fa = np.reshape(fa,(2,len(refl),len(SGT),len(Mdata))) #real A,-b 872 873 fas = np.sum(np.sum(fa,axis=2),axis=2) #real sum over atoms & unique hkl 873 fb = np.array([((FF+FP).T-Bab).T*sinp*Tcorr,F PP*cosp*Tcorr])874 fb = np.array([((FF+FP).T-Bab).T*sinp*Tcorr,Flack*FPP*cosp*Tcorr]) 874 875 fb = np.reshape(fb,(2,len(refl),len(SGT),len(Mdata))) #imag -B,+a 875 876 fbs = np.sum(np.sum(fb,axis=2),axis=2) #imag sum over atoms & uniq hkl … … 933 934 Tuij = np.where(HbH<1.,np.exp(HbH),1.0) 934 935 Tcorr = Tiso*Tuij 936 Flack = (1.-2.*parmDict[phfx+'Flack']) 935 937 fot = (FF+FP-Bab)*occ*Tcorr 936 fotp = F PP*occ*Tcorr938 fotp = Flack*FPP*occ*Tcorr 937 939 fa = np.array([fot[:,np.newaxis]*cosp,fotp[:,np.newaxis]*cosp]) #non positions 938 940 fb = np.array([fot[:,np.newaxis]*sinp,-fotp[:,np.newaxis]*sinp])
Note: See TracChangeset
for help on using the changeset viewer.