Changeset 4483
- Timestamp:
- Jun 12, 2020 2:19:25 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4479 r4483 1439 1439 if SGData['SGInv']: 1440 1440 SGMT = np.vstack((SGMT,-SGMT)) 1441 Sinv = np.vstack((Sinv,-Sinv))1441 Sinv = np.vstack((Sinv,-Sinv)) 1442 1442 SGT = np.vstack((SGT,-SGT)) 1443 1443 SGMT = np.vstack([SGMT for cen in SGData['SGCen']]) … … 1446 1446 if SGData['SGGray']: 1447 1447 SGMT = np.vstack((SGMT,SGMT)) 1448 Sinv = np.vstack((Sinv,Sinv))1448 Sinv = np.vstack((Sinv,Sinv)) 1449 1449 SGT = np.vstack((SGT,SGT+.5))%1. 1450 1450 mst = Sinv[:,3,:3] … … 1454 1454 tauT = TA[nxs,:,:] + epsinv[nxs,:,nxs]*(glTau[:,nxs,nxs]-SGT[:,3][nxs,:,nxs]+phi[nxs,:,:]) 1455 1455 modind = np.arange(nWaves)+1. 1456 phase = (modind[:,nxs,nxs]*tauT)#Nops,Natm,Nwave1456 phase = modind[:,nxs,nxs]*tauT #Nops,Natm,Nwave 1457 1457 psin = np.sin(twopi*phase) 1458 1458 pcos = np.cos(twopi*phase) 1459 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3) /2.#cos term1460 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3) /2.#sin term1459 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3) #cos term 1460 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3) #sin term 1461 1461 MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] 1462 1462 MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] 1463 return MmodA,MmodB #Ntau,Nops,Natm, ,Mxyz; cos & sin parts; sum matches drawn atom moments1463 return MmodA,MmodB #Ntau,Nops,Natm,Mxyz; cos & sin parts; sum matches drawn atom moments 1464 1464 1465 1465 def Modulation(H,HP,nWaves,Fmod,Xmod,Umod,glTau,glWt): -
trunk/GSASIIpwd.py
r4466 r4483 2778 2778 return rname 2779 2779 2780 2781 2780 def MakefullrmcPDB(Name,Phase,RMCPdict): 2782 2781 generalData = Phase['General'] -
trunk/GSASIIpwdGUI.py
r4436 r4483 4736 4736 histName = G2frame.GPXtree.GetItemText(G2frame.PatternId) 4737 4737 histData = Histograms[histName] 4738 muStrData = histData['Mustrain']4739 sizeData = histData['Size']4740 4738 except: 4741 4739 if GSASIIpath.GetConfigValue('debug'): … … 4747 4745 refs = refList 4748 4746 else: 4747 muStrData = histData['Mustrain'] 4748 sizeData = histData['Size'] 4749 4749 if len(data) > 1: 4750 4750 G2frame.dataWindow.SelectPhase.Enable(True)
Note: See TracChangeset
for help on using the changeset viewer.