Changeset 3226


Ignore:
Timestamp:
Jan 16, 2018 11:21:26 AM (4 years ago)
Author:
toby
Message:

Add error for fixed point fit w/no points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3193 r3226  
    990990        # sort the points for convenience and then separate them; extend the range if needed
    991991        if 'FixedPoints' not in background[1]:
     992            msg = ("You have not defined any fixed background points. "+
     993                    "Use the Fixed Points/Add menu item to define points that will be fit."+
     994                    '\n\nSee the "Fitting the Starting Background using Fixed Points" tutorial for more details.')
     995            print (msg)
     996            G2frame.ErrorDialog('No points',msg)
    992997            return
    993998        background[1]['FixedPoints'] = sorted(background[1]['FixedPoints'],key=lambda pair:pair[0])       
Note: See TracChangeset for help on using the changeset viewer.