Changeset 683 for trunk/GSASII.py
- Timestamp:
- Jul 10, 2012 10:23:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r682 r683 1226 1226 parent.Raise() 1227 1227 self.EndModal(wx.ID_OK) 1228 #self.Destroy()1229 1228 1230 1229 def OnCancel(self,event): … … 1232 1231 parent.Raise() 1233 1232 self.EndModal(wx.ID_CANCEL) 1234 #self.Destroy()1235 1233 1236 1234 def GetData(self): … … 1341 1339 parent.Raise() 1342 1340 self.EndModal(wx.ID_OK) 1343 #self.Destroy() -- do this later, after using GetData1344 1341 1345 1342 def OnCancel(self,event): … … 1347 1344 parent.Raise() 1348 1345 self.EndModal(wx.ID_CANCEL) 1349 #self.Destroy()1350 1346 1351 1347 def GetData(self): … … 1973 1969 HKLFdata['Instrument Parameters'] = self.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(self,HKLFname,'Instrument Parameters')) 1974 1970 return HKLFdata 1975 1976 def GetUsedHistogramsAndPhasesfromTree(self): 1977 ''' Returns all histograms that are found in any phase 1978 and any phase that uses a histogram 1979 return: 1980 Histograms = dictionary of histograms as {name:data,...} 1981 Phases = dictionary of phases that use histograms 1982 ''' 1971 1972 def GetPhaseData(self): 1983 1973 phaseData = {} 1984 1974 if G2gd.GetPatternTreeItemId(self,self.root,'Phases'): … … 1991 1981 while item: 1992 1982 phaseData[self.PatternTree.GetItemText(item)] = self.PatternTree.GetItemPyData(item) 1993 item, cookie = self.PatternTree.GetNextChild(sub, cookie) 1983 item, cookie = self.PatternTree.GetNextChild(sub, cookie) 1984 return phaseData 1985 1986 def GetUsedHistogramsAndPhasesfromTree(self): 1987 ''' Returns all histograms that are found in any phase 1988 and any phase that uses a histogram 1989 return: 1990 Histograms = dictionary of histograms as {name:data,...} 1991 Phases = dictionary of phases that use histograms 1992 ''' 1993 phaseData = self.GetPhaseData() 1994 1994 Histograms = {} 1995 1995 Phases = {}
Note: See TracChangeset
for help on using the changeset viewer.