Changeset 2990


Ignore:
Timestamp:
Aug 10, 2017 9:51:29 AM (4 years ago)
Author:
odonnell
Message:

fixed KeyError?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIpwdGUI.py

    r2963 r2990  
    958958        inst,inst2 = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Instrument Parameters'))
    959959        # sort the points for convenience and then separate them; extend the range if needed
     960        if 'FixedPoints' not in background[1]:
     961            return
    960962        background[1]['FixedPoints'] = sorted(background[1]['FixedPoints'],key=lambda pair:pair[0])       
    961963        X = [x for x,y in background[1]['FixedPoints']]
Note: See TracChangeset for help on using the changeset viewer.