Changeset 846


Ignore:
Timestamp:
Feb 5, 2013 10:51:03 AM (9 years ago)
Author:
vondreele
Message:

Fix to edf image file read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r827 r846  
    151151        print 'Read European detector data edf file: ',filename
    152152    File = open(filename,'rb')
     153    fileSize = os.stat(filename).st_size
    153154    head = File.read(3072)
    154155    lines = head.split('\n')
     
    183184        if line:
    184185            head.append(line)
     186    File.seek(fileSize-imSize)
    185187    if dType == 'UnsignedShort':       
    186188        image = np.array(ar.array('H',File.read(imSize)),dtype=np.int32)
Note: See TracChangeset for help on using the changeset viewer.