Changeset 4488 for trunk/GSASIImath.py
- Timestamp:
- Jun 16, 2020 9:39:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4485 r4488 1459 1459 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3) #cos term 1460 1460 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3) #sin term 1461 MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData[' MagMom'][nxs,:,nxs,nxs]1462 MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData[' MagMom'][nxs,:,nxs,nxs]1461 MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['SpnFlp'][nxs,:,nxs,nxs] 1462 MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['SpnFlp'][nxs,:,nxs,nxs] 1463 1463 return MmodA,MmodB #Ntau,Nops,Natm,Mxyz; cos & sin parts; sum matches drawn atom moments 1464 1464 … … 1802 1802 drawatom[dcx:dcx+3] = X 1803 1803 if generalData['Type'] == 'magnetic': 1804 M = G2spc.ApplyStringOpsMom(opr,SGData, SSGData,atmom+mom)1804 M = G2spc.ApplyStringOpsMom(opr,SGData,atmom+mom) 1805 1805 drawatom[dcx+3:dcx+6] = M 1806 1806 return drawAtoms,Fade
Note: See TracChangeset
for help on using the changeset viewer.