Changeset 4977


Ignore:
Timestamp:
Jun 25, 2021 11:09:38 AM (3 months ago)
Author:
vondreele
Message:

fix bad crash (blown out of python!) in OnDataDelete?. Remove CallAfter? to SelectItem? at end of routine. SelectTreeItem? is sufficient.
Cleanup HKL merge to give new reflection set that is not included in phase. It must be added to get proper setup of space group extinctions, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4974 r4977  
    42334233        if DelList:
    42344234            SelectDataTreeItem(self,selItem)
    4235             wx.CallAfter(self.GPXtree.SelectItem,selItem)
     4235#            wx.CallAfter(self.GPXtree.SelectItem,selItem)
    42364236               
    42374237    def OnPlotDelete(self,event):
     
    70957095        newData[0]['ranId'] = ran.randint(0,sys.maxsize)
    70967096        newData[1]['RefList'] = mergeRef
     7097        newData[0]['Nobs'] = mergeRef.shape[0]
     7098        newData[0]['wR'] = 0.0
     7099        keys = list(newData[0].keys())
     7100        for item in keys:
     7101            if ':' in item:
     7102                del newData[0][item]
    70977103        Id = G2frame.GPXtree.AppendItem(parent=G2frame.root,text=newName)
    70987104        G2frame.GPXtree.SetItemPyData(G2frame.GPXtree.AppendItem(Id,text='Comments'),Comments)
Note: See TracChangeset for help on using the changeset viewer.