Changeset 2818
- Timestamp:
- May 2, 2017 1:39:22 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2817 r2818 636 636 if h.startswith('HKLF ') and h not in usedHKLFhists: 637 637 usedHKLFhists.append(h) 638 639 638 640 rdlist = self.OnImportGeneric(reqrdr,self.ImportPhaseReaderlist, 639 641 'phase',usedRanIdList=phaseRIdList) -
trunk/GSASIIIO.py
r2817 r2818 33 33 GSASIIpath.SetVersionNumber("$Revision$") 34 34 import GSASIIgrid as G2gd 35 import GSASIIspc as G2spc36 35 import GSASIIobj as G2obj 37 36 import GSASIIlattice as G2lat … … 1202 1201 return result 1203 1202 1204 def PhaseSelector( self,ChoiceList, ParentFrame=None,1203 def PhaseSelector(ChoiceList, ParentFrame=None, 1205 1204 title='Select a phase', size=None,header='Phase Selector'): 1206 1205 ''' Provide a wx dialog to select a phase if the file contains more … … 1210 1209 size,header) 1211 1210 1212 def ShowBusy():1213 wx.BeginBusyCursor()1214 # wx.Yield() # make it happen now!1215 1216 def DoneBusy():1217 wx.EndBusyCursor()1218 wx.Yield() # make it happen now!1219 1211 ###################################################################### 1220 1212 def striphist(var,insChar=''): -
trunk/GSASIIobj.py
r2817 r2818 864 864 import sys 865 865 import os.path as ospath 866 import cPickle 866 867 import GSASIIpath 867 868 import GSASIImath as G2mth … … 980 981 ''' 981 982 P1SGData = G2spc.SpcGroup('P 1')[1] # data structure for default space group 983 984 def GetPhaseNames(fl): 985 ''' Returns a list of phase names found under 'Phases' in GSASII gpx file 986 NB: there is another one of these in GSASIIstrIO.py that uses the gpx filename 987 988 :param file fl: opened .gpx file 989 :return: list of phase names 990 ''' 991 PhaseNames = [] 992 while True: 993 try: 994 data = cPickle.load(fl) 995 except EOFError: 996 break 997 datum = data[0] 998 if 'Phases' == datum[0]: 999 for datus in data[1:]: 1000 PhaseNames.append(datus[0]) 1001 fl.seek(0) #reposition file 1002 return PhaseNames 982 1003 983 1004 def SetNewPhase(Name='New Phase',SGData=None,cell=None,Super=None): -
trunk/docs/source/imports.rst
r2817 r2818 154 154 ``Reader()`` routines that may encounter more than one set of information 155 155 in a file. 156 Likewise, when an operation will take some time to complete,157 use :meth:`~GSASIIIO.ShowBusy` and158 :meth:`~GSASIIIO.DoneBusy` to show the user that something is happening.159 156 160 157 ContentsValidator()
Note: See TracChangeset
for help on using the changeset viewer.