Changeset 2071 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Nov 25, 2015 2:41:43 PM (6 years ago)
Author:
toby
Message:

allow standalone testing of image importer from GSASIIIO.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2068 r2071  
    23712371
    23722372if __name__ == '__main__':
    2373     app = wx.PySimpleApp()
    2374     frm = wx.Frame(None) # create a frame
    2375     frm.Show(True)
    2376     filename = '/tmp/notzip.zip'
    2377     filename = '/tmp/all.zip'
     2373    import GSASII
     2374    application = GSASII.GSASIImain(0)
     2375    G2frame = application.main
     2376    #app = wx.PySimpleApp()
     2377    #G2frame = wx.Frame(None) # create a frame
     2378    #frm.Show(True)
     2379    #filename = '/tmp/notzip.zip'
     2380    #filename = '/tmp/all.zip'
    23782381    #filename = '/tmp/11bmb_7652.zip'
    23792382   
    23802383    #selection=None, confirmoverwrite=True, parent=None
    23812384    #print ExtractFileFromZip(filename, selection='11bmb_7652.fxye',parent=frm)
    2382     print ExtractFileFromZip(filename,multipleselect=True)
    2383                              #confirmread=False, confirmoverwrite=False)
     2385    #print ExtractFileFromZip(filename,multipleselect=True)
     2386    #                         #confirmread=False, confirmoverwrite=False)
    23842387
    23852388    # choicelist=[ ('a','b','c'),
     
    23912394    # if dlg.ShowModal() == wx.ID_OK:
    23922395    #     print 'Got OK'
     2396    imagefile = '/tmp/NDC5_00237_3.ge3'
     2397    Comments, Data, Npix, Image = GetImageData(G2frame,imagefile,imageOnly=False,ImageTag=None)
     2398
     2399    print("\n\nResults loaded to Comments, Data, Npix and Image\n\n")
     2400
     2401    GSASIIpath.IPyBreak_base()
Note: See TracChangeset for help on using the changeset viewer.