Changeset 584
- Timestamp:
- May 3, 2012 11:35:40 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ElementTable.py
r563 r584 1 # -*- coding: utf-8 -*- 1 2 #Element table for building periodic table with valences & JMOL colors 2 3 #Need these in case go back to this periodic table coloring scheme -
trunk/FormFactors.py
r266 r584 1 # -*- coding: utf-8 -*- 1 2 #FormFactors.py 2 3 # -
trunk/G2importphase.py
r500 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2012-02-13 11:33:35 -0600 (Mon, 13 Feb 2012) $ -
trunk/G2importphase_CIF.py
r580 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2012-02-13 11:33:35 -0600 (Mon, 13 Feb 2012) $ -
trunk/G2importphase_GPX.py
r580 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2012-02-13 11:33:35 -0600 (Mon, 13 Feb 2012) $ -
trunk/G2importsfact.py
r580 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2012-02-13 11:33:35 -0600 (Mon, 13 Feb 2012) $ -
trunk/G2importsfact_CIF.py
r580 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2012-02-13 11:33:35 -0600 (Mon, 13 Feb 2012) $ -
trunk/GSASII.py
r581 r584 565 565 self.Refine.Enable(True) 566 566 self.SeqRefine.Enable(True) 567 #self.Solve.Enable(True) # what is this? (BHT)568 567 569 568 def OnSize(self,event): -
trunk/GSASIIElem.py
r489 r584 1 # -*- coding: utf-8 -*- 1 2 """Element: functions for element types 2 3 Copyright: 2008, Robert B. Von Dreele & Brian H. Toby (Argonne National Laboratory) -
trunk/GSASIIElemGUI.py
r563 r584 1 # -*- coding: utf-8 -*- 1 2 """ElementGUI: class defn. for element GUIs 2 3 Copyright: 2008, Robert B. Von Dreele & Brian H. Toby (Argonne National Laboratory) -
trunk/GSASIIIO.py
r581 r584 1 # -*- coding: utf-8 -*- 1 2 """GSASIIIO: functions for IO of data 2 3 Copyright: 2008, Robert B. Von Dreele (Argonne National Laboratory) -
trunk/GSASIIgrid.py
r583 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII - data display routines 2 3 ########### SVN repository information ################### -
trunk/GSASIIimage.py
r537 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII image calculations: ellipse fitting & image integration 2 3 ########### SVN repository information ################### -
trunk/GSASIIimgGUI.py
r582 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII - image data display routines 2 3 ########### SVN repository information ################### -
trunk/GSASIIindex.py
r429 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII cell indexing program: variation on that of A. Coehlo 2 3 # includes cell refinement from peak positions (not zero as yet) -
trunk/GSASIIlattice.py
r582 r584 1 # -*- coding: utf-8 -*- 1 2 '''Perform lattice-related computations''' 2 3 3 ########### SVN repository information ################### 4 4 # $Date$ -
trunk/GSASIImapvars.py
r577 r584 1 # -*- coding: utf-8 -*- 1 2 ########### SVN repository information ################### 2 3 # $Date: 2011-01-07 13:27:24 -0600 (Fri, 07 Jan 2011) $ -
trunk/GSASIImath.py
r579 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASIImath - major mathematics routines 2 3 ########### SVN repository information ################### -
trunk/GSASIIpath.py
r558 r584 1 # -*- coding: utf-8 -*- 1 2 # determine a binary path for the pyd files based on the host OS and the python version, 2 3 # path is relative to location of the script that is called as well as this file -
trunk/GSASIIphsGUI.py
r574 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII - phase data display routines 2 3 ########### SVN repository information ################### … … 2460 2461 textureData['SH Coeff'][1] = SetSHCoef() 2461 2462 wx.CallAfter(UpdateTexture) 2462 G2plt.PlotTexture(G2frame,data ,newPlot=False)2463 G2plt.PlotTexture(G2frame,data) 2463 2464 2464 2465 def OnShModel(event): … … 2467 2468 textureData['SH Coeff'][1] = SetSHCoef() 2468 2469 wx.CallAfter(UpdateTexture) 2469 G2plt.PlotTexture(G2frame,data ,newPlot=False)2470 G2plt.PlotTexture(G2frame,data) 2470 2471 2471 2472 def OnSHRefine(event): … … 2481 2482 Obj = event.GetEventObject() 2482 2483 G2frame.Projection = Obj.GetValue() 2483 G2plt.PlotTexture(G2frame,data ,newPlot=False)2484 G2plt.PlotTexture(G2frame,data) 2484 2485 2485 2486 def OnColorSel(event): 2486 2487 Obj = event.GetEventObject() 2487 2488 G2frame.ContourColor = Obj.GetValue() 2488 G2plt.PlotTexture(G2frame,data ,newPlot=False)2489 G2plt.PlotTexture(G2frame,data) 2489 2490 2490 2491 def OnAngRef(event): … … 2509 2510 Obj.SetValue('%8.3f'%(value)) 2510 2511 textureData['SH Coeff'][1][ODFIndx[Obj.GetId()]] = value 2511 G2plt.PlotTexture(G2frame,data ,newPlot=False)2512 G2plt.PlotTexture(G2frame,data) 2512 2513 2513 2514 def OnPfType(event): -
trunk/GSASIIplot.py
r573 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII plotting routines 2 3 ########### SVN repository information ################### … … 1412 1413 ################################################################################ 1413 1414 1414 def PlotTexture(G2frame,data, newPlot=False,Start=False):1415 def PlotTexture(G2frame,data,Start=False): 1415 1416 '''Pole figure, inverse pole figure, 3D pole distribution and 3D inverse pole distribution 1416 1417 plotting. … … 1471 1472 G2frame.G2plotNB.status.SetFields(['','phi =%9.3f, gam =%9.3f, MRD =%9.3f'%(r,p,pf)]) 1472 1473 1473 if G2frame.Projection == '3D display' and 'Axial' not in SHData['PlotType']: 1474 Plot = mp3d.Axes3D(G2frame.G2plotNB.add3D('Texture')) 1475 else: 1474 try: 1475 plotNum = G2frame.G2plotNB.plotList.index('Texture') 1476 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 1477 Page.figure.clf() 1478 Plot = Page.figure.gca() 1479 if not Page.IsShown(): 1480 Page.Show() 1481 except ValueError: 1476 1482 Plot = G2frame.G2plotNB.addMpl('Texture').gca() 1477 plotNum = G2frame.G2plotNB.plotList.index('Texture') 1478 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 1479 if G2frame.Projection == '3D display': 1480 pass 1481 else: 1483 plotNum = G2frame.G2plotNB.plotList.index('Texture') 1484 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 1482 1485 Page.canvas.mpl_connect('motion_notify_event', OnMotion) 1483 1486 … … 1520 1523 except ValueError: 1521 1524 pass 1522 if newPlot: 1523 # Page.figure.colorbar(Img) #colorbar fails - crashes gsasii 1524 newPlot = False 1525 Page.figure.colorbar(Img) 1525 1526 Plot.set_title('Inverse pole figure for XYZ='+str(SHData['PFxyz'])) 1526 1527 Plot.set_xlabel(G2frame.Projection.capitalize()+' projection') … … 1542 1543 pass 1543 1544 Img = Plot.imshow(Z.T,aspect='equal',cmap=G2frame.ContourColor,extent=[-1,1,-1,1]) 1544 if newPlot: 1545 # Page.figure.colorbar(Img) #colorbar fails - crashes gsasii 1546 newPlot = False 1545 Page.figure.colorbar(Img) 1547 1546 Plot.set_title('Pole figure for HKL='+str(SHData['PFhkl'])) 1548 1547 Plot.set_xlabel(G2frame.Projection.capitalize()+' projection') -
trunk/GSASIIpwdGUI.py
r583 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASII - data display routines 2 3 ########### SVN repository information ################### … … 979 980 copyDict[parm] = data[parm] 980 981 histList = ['All '+histType,] 982 AllList = {} 981 983 item, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root) 982 984 while item: 983 985 name = G2frame.PatternTree.GetItemText(item) 984 986 if histType in name and name != histName: 987 allname = name.split(' Azm=')[0] 988 if allname in AllList: 989 AllList[allname] += 1 990 else: 991 AllList[allname] = 1 985 992 histList.append(name) 986 993 item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie) 987 994 if len(histList) == 1: #nothing to copy to! 988 995 return 996 nAll = 0 997 AllNames = AllList.keys() 998 AllNames.sort() 999 for allname in AllNames: 1000 if AllList[allname] > 1: 1001 histList.insert(1+nAll,'All '+allname) 1002 nAll += 1 989 1003 copyList = [] 990 1004 dlg = wx.MultiChoiceDialog(G2frame,'Copy parameters from\n'+histName, … … 995 1009 for i in result: 996 1010 copyList.append(histList[i]) 1011 for allname in AllList: 1012 if 'All '+allname in copyList: 1013 copyList = [] 1014 for name in histList: 1015 if name.split(' Azm=')[0] == allname: 1016 copyList.append(name) 1017 break #only one All allowed 997 1018 if 'All '+histType in copyList: 998 copyList = histList[1 :]1019 copyList = histList[1+nAll:] 999 1020 for item in copyList: 1000 1021 Id = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,item) -
trunk/GSASIIsolve.py
r484 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASIIsolve - structure solving routines 2 3 ########### SVN repository information ################### -
trunk/GSASIIspc.py
r530 r584 1 # -*- coding: utf-8 -*- 1 2 "GSASII - Space group interpretion routines" 2 3 3 ########### SVN repository information ################### 4 4 # $Date$ -
trunk/GSASIIstruct.py
r578 r584 1 # -*- coding: utf-8 -*- 1 2 #GSASIIstructure - structure computation routines 2 3 ########### SVN repository information ###################
Note: See TracChangeset
for help on using the changeset viewer.