Changeset 2692 for trunk/GSASIIobj.py


Ignore:
Timestamp:
Feb 4, 2017 5:54:36 PM (5 years ago)
Author:
toby
Message:

don't allow duplicate PDF entries; PWDR and PDF names must match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIobj.py

    r2688 r2692  
    20972097    :returns: the Id of the newly created PDF entry
    20982098    '''
    2099     PDFname = 'PDF '+PWDRtree[4:] # this places two spaces after PDF which is needed is some places
    2100     PDFname = MakeUniqueLabel(PDFname,PDFnames)
     2099    PDFname = 'PDF '+PWDRtree[4:] # this places two spaces after PDF, which is needed is some places
     2100    if PDFname in PDFnames:
     2101        print('Skipping, entry already exists: '+PDFname)
     2102        return None
     2103    #PDFname = MakeUniqueLabel(PDFname,PDFnames)
    21012104    Id = G2frame.PatternTree.AppendItem(parent=G2frame.root,text=PDFname)
    21022105    Data = {
Note: See TracChangeset for help on using the changeset viewer.