Changeset 4568
- Timestamp:
- Sep 12, 2020 9:49:04 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4564 r4568 5397 5397 5398 5398 # G2G.Define_wxId('wxID_MCRON', 'wxID_MCRLIST', 'wxID_MCRSAVE', 'wxID_MCRPLAY',) 5399 5399 ##### GSAS-II Menu items 5400 5400 # Main menu 5401 5401 G2frame = self.GetTopLevelParent() … … 6220 6220 self.MapPeaksEdit.Append(G2G.wxID_FINDEQVPEAKS,'Equivalent peaks','Find equivalent peaks') 6221 6221 self.MapPeaksEdit.Append(G2G.wxID_INVERTPEAKS,'Invert peak positions','Inverts map & peak positions') 6222 self.MapPeaksEdit.Append(G2G.wxID_ROLLMAP,'Roll map','Rollmap by specified steps')6222 self.MapPeaksEdit.Append(G2G.wxID_ROLLMAP,'Roll charge flip map','Roll charge flip map by specified steps') 6223 6223 self.MapPeaksEdit.Append(G2G.wxID_PEAKSUNIQUE,'Unique peaks','Select unique set') 6224 6224 self.MapPeaksEdit.Append(G2G.wxID_PEAKSSAVE,'Save peaks','Save peaks to csv file') -
trunk/GSASIIphsGUI.py
r4564 r4568 5827 5827 def OnStopRMC(event): 5828 5828 if G2frame.RMCchoice == 'fullrmc': 5829 RMCPdict = data['RMC']['fullrmc']5830 5829 generalData = data['General'] 5831 5830 pName = G2frame.GSASprojectfile.split('.')[0] + '-' + generalData['Name'] … … 11948 11947 def OnRollMap(event): 11949 11948 if 'Map Peaks' in data: 11950 if mapData['Flip'] != True: 11951 print('Only valid for charge flip maps') 11952 return 11949 half = np.array([.5,.5,.5]) 11953 11950 mapPeaks = data['Map Peaks'] 11954 11951 generalData = data['General'] 11952 mapData = generalData['Map'] 11953 if mapData['Flip'] != True: 11954 wx.MessageBox('Only valid for charge flip maps',caption='Roll map error',style=wx.ICON_EXCLAMATION) 11955 return 11955 11956 Amat,Bmat = G2lat.cell2AB(generalData['Cell'][1:7]) 11956 mapData = generalData['Map']11957 11957 dims = mapData['rho'].shape 11958 11958 dims = [[-D,D] for D in dims] … … 11972 11972 peak[1:4] %= 1. 11973 11973 peak[4] = np.sqrt(np.sum(np.inner(Amat,peak[1:4])**2)) 11974 if len(peak)>4: 11975 peak[5] = np.sqrt(np.sum(np.inner(Amat,(peak[1:4]-half)%1.)**2)) 11974 11976 FillMapPeaksGrid() 11975 11977 G2plt.PlotStructure(G2frame,data)
Note: See TracChangeset
for help on using the changeset viewer.