Ignore:
Timestamp:
May 9, 2018 3:50:11 PM (4 years ago)
Author:
vondreele
Message:

revise sequential refinement to retain previous runs & update those refined with new values.
provide a "Clear seq. results" button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3376 r3377  
    55265526           
    55275527        def OnCopySel(event):
    5528             data['Copy2Next'] = copySel.GetValue()
     5528            data['Copy2Next'] = copySel.GetValue()
     5529           
     5530        def OnClrSeq(event):
     5531            sId = GetGPXtreeItemId(G2frame,G2frame.root,'Sequential results')
     5532            if sId:
     5533                dlg = wx.MessageDialog(G2frame,'Are you sure?','Delete sequential results table',wx.OK|wx.CANCEL)
     5534                try:
     5535                    if dlg.ShowModal() == wx.ID_OK:
     5536                        G2frame.GPXtree.Delete(sId)
     5537                finally:
     5538                    dlg.Destroy()
    55295539                   
    55305540        seqSizer = wx.BoxSizer(wx.VERTICAL)
     
    55525562            copySel.SetValue(data['Copy2Next'])
    55535563            selSizer.Add(copySel,0,WACV)
     5564            clrSeq = wx.Button(G2frame.dataWindow,label='Clear previous seq.results')
     5565            clrSeq.Bind(wx.EVT_BUTTON,OnClrSeq)
     5566            selSizer.Add(clrSeq,0,WACV)
    55545567            seqSizer.Add(selSizer,0)
    55555568        return seqSizer
     
    68566869        vals.append([data[name]['variables'][s] if s is not None else None for s in sellist])
    68576870        esds.append([data[name]['sig'][s] if s is not None else None for s in sellist])
    6858         #GSASIIpath.IPyBreak()
    68596871    G2frame.colList += zip(*vals)
    68606872    G2frame.colSigs += zip(*esds)
Note: See TracChangeset for help on using the changeset viewer.