- Timestamp:
- Oct 21, 2019 3:17:29 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIImath.py ¶
r4183 r4185 1391 1391 psin = np.sin(twopi*phase) 1392 1392 pcos = np.cos(twopi*phase) 1393 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3) #cos term1394 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3) #sin term1393 MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3)/2. #cos term 1394 MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3)/2. #sin term 1395 1395 MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] 1396 1396 MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs] -
TabularUnified trunk/GSASIIplot.py ¶
r4167 r4185 5041 5041 def OnMotion(event): 5042 5042 xpos = event.xdata 5043 if Xmin<xpos<Xmax: #avoid out of frame mouse position5043 if xpos and Xmin<xpos<Xmax: #avoid out of frame mouse position 5044 5044 ypos = event.ydata 5045 if Ymin<ypos<Ymax:5045 if ypos and Ymin<ypos<Ymax: 5046 5046 Xwd = Xmax-Xmin 5047 5047 Ywd = Ymax-Ymin -
TabularUnified trunk/GSASIIstrMath.py ¶
r4182 r4185 1642 1642 #do integration 1643 1643 1644 fas = np.sum(glWt*fass,axis=1) /2.1645 fbs = np.sum(glWt*fbss,axis=1) /2.1644 fas = np.sum(glWt*fass,axis=1) 1645 fbs = np.sum(glWt*fbss,axis=1) 1646 1646 1647 1647 if SGData['SGInv']:
Note: See TracChangeset
for help on using the changeset viewer.