Changeset 5011 for trunk/GSASIImath.py
- Timestamp:
- Aug 6, 2021 8:54:36 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r5009 r5011 1730 1730 Am = np.array(MSSdata[3:]).T[:,0,:] #atoms x cos mag mods; only 1 wave used 1731 1731 Bm = np.array(MSSdata[:3]).T[:,0,:] #...sin mag mods 1732 SGMT = np.array([ops[0] .Tfor ops in SGData['SGOps']]) #not .T!!1732 SGMT = np.array([ops[0] for ops in SGData['SGOps']]) #not .T!! 1733 1733 Sinv = np.array([nl.inv(ops[0]) for ops in SSGData['SSGOps']]) 1734 1734 SGT = np.array([ops[1] for ops in SSGData['SSGOps']]) … … 1750 1750 phi = np.inner((XYZ-SGT[:,:3][nxs,:,:]),modQ).T 1751 1751 TA = np.sum(mst[nxs,:,:]*(XYZ-SGT[:,:3][nxs,:,:]),axis=-1).T 1752 phase = TA[nxs,:,:] + epsinv[nxs,:,nxs]*(glTau[:,nxs,nxs] +phi[nxs,:,:])-SGT[:,3][nxs,:,nxs]1752 phase = TA[nxs,:,:] + epsinv[nxs,:,nxs]*(glTau[:,nxs,nxs])+SGT[:,3][nxs,:,nxs]-phi[nxs,:,:] 1753 1753 psin = np.sin(twopi*phase) #tau,ops,atms 1754 1754 pcos = np.cos(twopi*phase)
Note: See TracChangeset
for help on using the changeset viewer.