Changeset 2227 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 26, 2016 8:36:05 AM (6 years ago)
Author:
vondreele
Message:

avoid divide by zero effect if a zero image
refactor LoadImage2Tree
add new importer for summing GE images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2223 r2227  
    277277    ImageTag (where there is more than one image in the file), if defined.
    278278    '''
    279     ImgNames = []
    280     if G2frame.PatternTree.GetCount(): # get a list of existing Image entries
    281         item, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    282         while item:
    283             name = G2frame.PatternTree.GetItemText(item)
    284             if name.startswith('IMG'): ImgNames.append(name)       
    285             item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)
     279    ImgNames = G2gd.GetPatternTreeDataNames(G2frame,['IMG ',])
    286280    TreeLbl = 'IMG '+os.path.basename(imagefile)
    287281    ImageTag = Data.get('ImageTag')
Note: See TracChangeset for help on using the changeset viewer.