Changeset 2048


Ignore:
Timestamp:
Nov 12, 2015 5:15:56 PM (6 years ago)
Author:
toby
Message:

move list of PWDR tree items to delete so they are saved

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2047 r2048  
    22522252        self.imageDefault = {}
    22532253        self.IntgOutList = [] # list of integration tree item Ids created in G2IO.SaveIntegration
     2254        self.AutointPWDRnames = [] # list of autoint created PWDR tree item names
    22542255        self.autoIntFrame = None
    22552256        self.IntegratedList = [] # list of integrated image files
  • trunk/autoint.py

    r2047 r2048  
    9292            for Id in G2frame.IntgOutList:
    9393                treename = G2frame.PatternTree.GetItemText(Id)
    94                 self.CreatedPWDRnames.append(treename)
     94                self.G2frame.AutointPWDRnames.append(treename)
    9595                Sdata = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,Id, 'Sample Parameters'))
    9696                # determine the name for the current file
     
    162162            while item:
    163163                itemName = G2frame.PatternTree.GetItemText(item)
    164                 if itemName in self.CreatedPWDRnames:
     164                if itemName in self.G2frame.AutointPWDRnames:
    165165                    idlist.append(item)
    166166                item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)
     
    168168                G2frame.PatternTree.Delete(item)
    169169        self.Reset = False
    170         self.CreatedPWDRnames = [] # list of created PWDR tree item names
     170        self.G2frame.AutointPWDRnames = [] # list of created PWDR tree item names
    171171
    172172    def __init__(self,G2frame,PollTime=60.0):
     
    310310        self.params['filter'] = '*'+os.path.splitext(fileroot)[1]
    311311        self.params['outdir'] = os.path.abspath(self.imagedir)
    312         self.CreatedPWDRnames = [] # list of created PWDR tree item names
    313312        wx.Frame.__init__(self, G2frame,title='Automatic Integration')
    314313        self.Status = self.CreateStatusBar()
Note: See TracChangeset for help on using the changeset viewer.