Changeset 699 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 7, 2012 2:54:06 PM (10 years ago)
Author:
vondreele
Message:

implement restore data window after refine
implement sample parameters save & load
more on strain fitting
implement input of fractions & other math statements for atom positions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r697 r699  
    20582058            Rw = G2str.Refine(self.GSASprojectfile,dlg)
    20592059        finally:
    2060             dlg.Destroy()       
     2060            dlg.Destroy()
     2061        oldId =  self.PatternTree.GetSelection()
     2062        oldName = self.PatternTree.GetItemText(oldId)
     2063        parentId = self.PatternTree.GetItemParent(oldId)
     2064        parentName = ''
     2065        if parentId:
     2066            parentName = self.PatternTree.GetItemText(parentId)
    20612067        dlg = wx.MessageDialog(self,'Load new result?','Refinement results, Rw =%.3f'%(Rw),wx.OK|wx.CANCEL)
    20622068        try:
     
    20742080                        Id = item
    20752081                    item, cookie = self.PatternTree.GetNextChild(self.root, cookie)               
    2076                 if Id:
     2082                if parentName:
     2083                    parentId = G2gd.GetPatternTreeItemId(self, self.root, parentName)
     2084                    itemId = G2gd.GetPatternTreeItemId(self, parentId, oldName)
     2085                    self.PatternTree.SelectItem(itemId)
     2086                elif Id:
    20772087                    self.PatternTree.SelectItem(Id)
    20782088        finally:
Note: See TracChangeset for help on using the changeset viewer.