Changeset 1633
- Timestamp:
- Jan 22, 2015 10:09:11 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r1629 r1633 2081 2081 waveSizer.Add(waveHead) 2082 2082 if len(waveBlk): 2083 CSI = G2spc.GetSSfxuinel(xyz,uij,SGData,SSGData)2084 2083 for iwave,wave in enumerate(waveBlk): 2084 if not iwave: 2085 CSI = G2spc.GetSSfxuinel(waveType,xyz,uij,SGData,SSGData) 2086 else: 2087 CSI = G2spc.GetSSfxuinel('Fourier',xyz,uij,SGData,SSGData) 2085 2088 waveName = 'Fourier' 2086 2089 if Stype == 'Sfrac': … … 2190 2193 if generalData['Type'] != 'magnetic' and Stype == 'Smag': 2191 2194 break 2192 mainSizer.Add(WaveSizer(atom[-1][SS]['waveType'],atom[-1][SS][Stype],Stype,typeNames[Stype],Labels[Stype])) 2193 2195 mainSizer.Add(WaveSizer(atom[-1][SS]['waveType'],atom[-1][SS][Stype],Stype,typeNames[Stype],Labels[Stype])) 2194 2196 SetPhaseWindow(G2frame.dataFrame,waveData,mainSizer) 2195 2197 … … 2198 2200 mapData = generalData['4DmapData'] 2199 2201 reflName = mapData['RefList'] 2202 generalData['Map']['Flip'] = False 2200 2203 if not reflName: 2201 2204 G2frame.ErrorDialog('Fourier map','No reflections defined for Fourier map') … … 5034 5037 screenSize = wx.ClientDisplayRect() 5035 5038 Size = pgbar.GetSize() 5036 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x5037 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))5038 pgbar.SetSize(Size)5039 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 5040 pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 5041 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 5039 5042 else: 5040 5043 pgbar = None … … 5626 5629 screenSize = wx.ClientDisplayRect() 5627 5630 Size = pgbar.GetSize() 5628 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x5629 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))5630 pgbar.SetSize(Size)5631 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 5632 pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 5633 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 5631 5634 try: 5632 5635 newMap,new4Dmap = G2mth.SSChargeFlip(data,reflDict,pgbar) … … 5674 5677 screenSize = wx.ClientDisplayRect() 5675 5678 Size = pgbar.GetSize() 5676 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x5677 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))5678 pgbar.SetSize(Size)5679 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 5680 pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 5681 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 5679 5682 try: 5680 5683 mapData.update(G2mth.ChargeFlip(data,reflDict,pgbar)) -
trunk/GSASIIplot.py
r1630 r1633 2853 2853 ccof.append(spos[0][3:]) 2854 2854 wave += G2mth.posFourier(tau,np.array(scof),np.array(ccof)) 2855 Title = MapType+' modulation map for atom '+atom[0]+ \ 2855 if mapData['Flip']: 2856 Title = 'Charge flip' 2857 else: 2858 Title = MapType 2859 Title += ' map for atom '+atom[0]+ \ 2856 2860 ' at %.4f %.4f %.4f'%(atxyz[0],atxyz[1],atxyz[2]) 2857 2861 ix = -np.array(np.rint(rhoSize[:3]*atxyz),dtype='i') … … 2873 2877 Plot.set_xlabel('t') 2874 2878 Plot.set_ylabel(r'$\mathsf{\Delta}$%s'%(Ax)) 2875 Slab = np. concatenate((slab,slab),axis=1)2876 Plot.contour(Slab ,20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005))2879 Slab = np.hstack((slab,slab,slab)) 2880 Plot.contour(Slab[:,:21],20,extent=(0.,2.,-.5+Off*.005,.5+Off*.005)) 2877 2881 Page.canvas.draw() 2878 2882 … … 4032 4036 B4mat = np.concatenate((np.concatenate((Bmat,[[0],[0],[0]]),axis=1),[[0,0,0,1],]),axis=0) 4033 4037 SGData = generalData['SGData'] 4038 if generalData['Type'] in ['modulated','magnetic']: 4039 SSGData = generalData['SSGData'] 4034 4040 Mydir = generalData['Mydir'] 4035 4041 atomData = data['Atoms'] … … 4108 4114 shiftDown = False 4109 4115 ctrlDown = False 4116 G2frame.tau = 0. 4110 4117 4111 4118 def OnKeyBox(event): … … 4215 4222 SetPeakRoll(dirDict[key]) 4216 4223 SetMapPeaksText(mapPeaks) 4224 elif key in ['+','-','0'] and generalData['Type'] in ['modulated','magnetic']: 4225 if key == '0': 4226 G2frame.tau = 0. 4227 elif key =='+': 4228 G2frame.tau += 0.05 4229 elif key =='-': 4230 G2frame.tau -= 0.05 4231 G2frame.tau %= 1. #force 0-1 range 4217 4232 Draw('key') 4218 4233 … … 4991 5006 else: 4992 5007 choice = [' save as/key:','jpeg','tiff','bmp','c: center on 1/2,1/2,1/2','n: next','p: previous'] 5008 if generalData['Type'] in ['modulated','magnetic',] and len(drawAtoms): 5009 choice += ['+: increase tau','-: decrease tau','0: set tau = 0'] 5010 4993 5011 cb = wx.ComboBox(G2frame.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,choices=choice) 4994 5012 cb.Bind(wx.EVT_COMBOBOX, OnKeyBox) -
trunk/GSASIIpwdGUI.py
r1623 r1633 452 452 screenSize = wx.ClientDisplayRect() 453 453 Size = dlg.GetSize() 454 dlg2.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 454 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 455 dlg2.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 456 dlg2.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 455 457 try: 456 458 peaks['sigDict'],result,sig,Rvals,varyList,parmDict,fullvaryList,badVary = G2pwd.DoPeakFit(FitPgm,peaks['peaks'], … … 511 513 screenSize = wx.ClientDisplayRect() 512 514 Size = dlg.GetSize() 513 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 515 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 516 dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 517 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 514 518 try: 515 519 peaks['sigDict'] = G2pwd.DoPeakFit(FitPgm,peaks['peaks'],background,limits,inst,inst2,data,[],oneCycle,controls,dlg)[0]
Note: See TracChangeset
for help on using the changeset viewer.