Changeset 2211 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Apr 13, 2016 3:16:53 PM (6 years ago)
Author:
vondreele
Message:

some work on Transform Phase menu item.
uncomment the if Page.context lines in OGL plots to make multistructure plots behave.
Trap trying to plot reflections when none available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2202 r2211  
    32093209            refList = data[1]['RefList']
    32103210        else:                           #powder data is a dict of dicts; each same structure as SC 2nd dict
    3211             refList = np.array(data[phaseName]['RefList'])
     3211            if 'RefList' in data[phaseName]:
     3212                refList = np.array(data[phaseName]['RefList'])
     3213            else:
     3214                wx.MessageBox('No reflection list - do Refine first',caption='Reflection plotting')
     3215                return
    32123216        FoMax = np.max(refList.T[8+Super])
    32133217        Hmin = np.array([int(np.min(refList.T[0])),int(np.min(refList.T[1])),int(np.min(refList.T[2]))])
     
    32333237            refList = data[1]['RefList']
    32343238        else:                           #powder data is a dict of dicts; each same structure as SC 2nd dict
    3235             refList = np.array(data[phaseName]['RefList'])
     3239            if 'RefList' in data[phaseName]:
     3240                refList = np.array(data[phaseName]['RefList'])
     3241            else:
     3242                wx.MessageBox('No reflection list - do Refine first',caption='Reflection plotting')
     3243                return
    32363244        refList.T[3+Super] = np.where(refList.T[4+Super]<dMin,-refList.T[3+Super],refList.T[3+Super])
    32373245        FoMax = np.max(refList.T[8+Super])
Note: See TracChangeset for help on using the changeset viewer.