Changeset 5000 for trunk/GSASIIseqGUI.py


Ignore:
Timestamp:
Jul 24, 2021 8:55:07 AM (3 months ago)
Author:
toby
Message:

deal with deleting histograms from tree w/sequential fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIseqGUI.py

    r4987 r5000  
    114114                if Id:
    115115                    sampleData = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,Id,'Sample Parameters'))
    116                     for item in sampleParmDict:
    117                         sampleParmDict[item].append(sampleData.get(item,0))
     116                else:  # item missing from tree! stick in NaN's!
     117                    sampleData = {}
     118                for item in sampleParmDict:
     119                    sampleParmDict[item].append(sampleData.get(item,np.NaN))
    118120        for item in sampleParmDict:
    119121            if sampleParmDict[item]:
Note: See TracChangeset for help on using the changeset viewer.