Changeset 2692 for trunk/GSASIIpwdGUI.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/GSASIIpwdGUI.py

    r2689 r2692  
    52215221    powName = 'PWDR'+dataFile[4:]
    52225222    powId = G2gd.GetPatternTreeItemId(G2frame,G2frame.root, powName)
     5223    if not powId: # skip if no matching PWDR entry
     5224        G2G.G2MessageBox(G2frame,'matching PWDR record not found. PDF can not be used.')
     5225        return
    52235226    fullLimits,limits = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,powId, 'Limits'))[:2]
    52245227    inst = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,powId, 'Instrument Parameters'))[0]
Note: See TracChangeset for help on using the changeset viewer.