Changeset 1580 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Nov 21, 2014 4:12:53 PM (8 years ago)
Author:
toby
Message:

Add ignore-threshold mask load; start on hetrogeneous seqref table display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r1579 r1580  
    10321032
    10331033    def Replot(*args,**kwargs):
    1034         print 'Replot'
    10351034        G2plt.PlotExposedImage(G2frame)       
    10361035
     
    11021101       
    11031102    def OnLoadMask(event):
     1103        if event.Id == G2gd.wxID_MASKLOADNOT:
     1104            ignoreThreshold = True
     1105        else:
     1106            ignoreThreshold = False
    11041107        dlg = wx.FileDialog(G2frame, 'Choose image mask file', '.', '',
    11051108            'image mask files (*.immask)|*.immask',wx.OPEN|wx.CHANGE_DIR)
     
    11171120                    [key,val] = S[:-1].split(':')
    11181121                    if key in ['Points','Rings','Arcs','Polygons','Frames','Thresholds']:
     1122                        if ignoreThreshold and key == 'Thresholds': continue
    11191123                        save[key] = eval(val)
    11201124                        if key == 'Thresholds':
     
    11611165    G2frame.dataFrame.Bind(wx.EVT_MENU, OnCopyMask, id=G2gd.wxID_MASKCOPY)
    11621166    G2frame.dataFrame.Bind(wx.EVT_MENU, OnLoadMask, id=G2gd.wxID_MASKLOAD)
     1167    G2frame.dataFrame.Bind(wx.EVT_MENU, OnLoadMask, id=G2gd.wxID_MASKLOADNOT)
    11631168    G2frame.dataFrame.Bind(wx.EVT_MENU, OnSaveMask, id=G2gd.wxID_MASKSAVE)
    11641169    G2frame.dataFrame.Bind(wx.EVT_MENU, OnNewSpotMask, id=G2gd.wxID_NEWMASKSPOT)
Note: See TracChangeset for help on using the changeset viewer.