Changeset 2084 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Dec 7, 2015 1:35:58 PM (7 years ago)
Author:
vondreele
Message:

fix bug in TOF iparm reading
remove extraneous code in G2imgGUI
replace some numeric derivatives in ZigZag/Block? modulations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2083 r2084  
    179179        print 'integrate all'
    180180        TextList = [[False,'All IMG',0]]
    181         Names = []
     181#        Names = []
    182182        if G2frame.PatternTree.GetCount():
    183183            id, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    184184            while id:
    185185                name = G2frame.PatternTree.GetItemText(id)
    186                 Names.append(name)
     186#                Names.append(name)
    187187                if 'IMG' in name:
    188188                    TextList.append([False,name,id])
     
    251251    def OnCopyControls(event):
    252252        TextList = [[False,'All IMG',0]]
    253         Names = []
     253#        Names = []
    254254        if G2frame.PatternTree.GetCount():
    255255            id, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    256256            while id:
    257257                name = G2frame.PatternTree.GetItemText(id)
    258                 Names.append(name)
     258#                Names.append(name)
    259259                if 'IMG' in name:
    260260                    if id == G2frame.Image:
     
    11441144    def OnCopyMask(event):
    11451145        TextList = [[False,'All IMG',0]]
    1146         Names = []
     1146#        Names = []
    11471147        if G2frame.PatternTree.GetCount():
    11481148            id, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    11491149            while id:
    11501150                name = G2frame.PatternTree.GetItemText(id)
    1151                 Names.append(name)
     1151#                Names.append(name)
    11521152                if 'IMG' in name:
    11531153                    if id == G2frame.Image:
     
    14631463    def OnCopyStrSta(event):
    14641464        TextList = [[False,'All IMG',0,0]]
    1465         Names = []
     1465#        Names = []
    14661466        if G2frame.PatternTree.GetCount():
    14671467            id, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    14681468            while id:
    14691469                name = G2frame.PatternTree.GetItemText(id)
    1470                 Names.append(name)
     1470#                Names.append(name)
    14711471                if 'IMG' in name:
    14721472                    Data = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,id, 'Stress/Strain'))
     
    16191619    def OnFitAllStrSta(event):
    16201620        TextList = [[False,'All IMG',0]]
    1621         Names = []
     1621#        Names = []
    16221622        if G2frame.PatternTree.GetCount():
    16231623            choices = G2gd.GetPatternTreeDataNames(G2frame,['IMG ',])
Note: See TracChangeset for help on using the changeset viewer.