Changeset 2730


Ignore:
Timestamp:
Feb 28, 2017 1:35:33 PM (5 years ago)
Author:
vondreele
Message:

fix glitches when no comments or no background file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2729 r2730  
    47664766                dataId = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,'PWDR'+dataFile[4:])
    47674767                dataComments = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,dataId,'Comments'))
    4768                 backId = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,data['Sample Bkg.']['Name'])
     4768                if not backFile:
     4769                    return -1.
     4770                backId = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,backFile)
    47694771                backComments = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,backId,'Comments'))
    47704772                expTime = 1.
Note: See TracChangeset for help on using the changeset viewer.