Changeset 3322


Ignore:
Timestamp:
Mar 28, 2018 4:03:49 PM (4 years ago)
Author:
vondreele
Message:

fix ge image importer to read multiple images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_GE.py

    r3321 r3322  
    153153            print('Assumed 2048x2048')
    154154            size = 2048
    155             nframes = 3
     155            statinfo = os.stat(str(File).split("'")[1])
     156            fsize = statinfo.st_size
     157            nframes = (fsize-8192)/(2*2048**2)
    156158#            return 0,0,0,0,False # probably should quit now
    157159        if imagenum > nframes:
Note: See TracChangeset for help on using the changeset viewer.