Changeset 4183
- Timestamp:
- Oct 20, 2019 6:12:55 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4182 r4183 1382 1382 Sinv =np.vstack((Sinv,Sinv)) 1383 1383 SGT = np.vstack((SGT,SGT+.5))%1. 1384 detSM = nl.det(SGMT)1385 1384 mst = Sinv[:,3,:3] 1386 1385 epsinv = Sinv[:,3,3] … … 1394 1393 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3) #cos term 1395 1394 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3) #sin term 1396 # if SGData['SGGray']:1397 # MmodA = -np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*detSM[nxs,:,nxs,nxs]1398 # MmodB = -np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*detSM[nxs,:,nxs,nxs]1399 # else:1400 1395 MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] 1401 1396 MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] 1402 return Mmod B,MmodA#Ntau,Nops,Natm,,Mxyz; cos & sin parts; sum matches drawn atom moments1397 return MmodA,MmodB #Ntau,Nops,Natm,,Mxyz; cos & sin parts; sum matches drawn atom moments 1403 1398 1404 1399 def Modulation(H,HP,nWaves,Fmod,Xmod,Umod,glTau,glWt): -
trunk/GSASIIphsGUI.py
r4175 r4183 9743 9743 elif text == 'Wave Data' and data['General']['Modulated']: 9744 9744 G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.WavesData) 9745 G2plt.PlotStructure(G2frame,data,firstCall=True) 9745 9746 UpdateWavesData() 9746 wx.CallAfter(G2plt.PlotStructure,G2frame,data,firstCall=True)9747 9747 elif text == 'Dysnomia': 9748 9748 G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.MEMMenu)
Note: See TracChangeset
for help on using the changeset viewer.