Changeset 2215 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 15, 2016 1:17:34 PM (6 years ago)
Author:
toby
Message:

load images to tree as read in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2214 r2215  
    272272    dlg.CenterOnParent()
    273273    dlg.ShowModal()
    274    
    275 def ReadLoadImage(imagefile,G2frame):
    276     '''Read a GSAS-II image file and load it into the data tree
    277     Called only from GSASII.OnImageRead (depreciated).
    278     '''
    279     # if a zip file, open and extract
    280     if os.path.splitext(imagefile)[1].lower() == '.zip':
    281         extractedfile = ExtractFileFromZip(imagefile,parent=G2frame)
    282         if extractedfile is not None and extractedfile != imagefile:
    283             imagefile = extractedfile
    284     Comments,Data,Npix,Image = GetImageData(G2frame,imagefile) # can only read 1st image
    285     if Comments:
    286         LoadImage2Tree(imagefile,G2frame,Comments,Data,Npix,Image)
    287274   
    288275def LoadImage2Tree(imagefile,G2frame,Comments,Data,Npix,Image):
Note: See TracChangeset for help on using the changeset viewer.