Changeset 1671


Ignore:
Timestamp:
Feb 25, 2015 12:59:48 PM (7 years ago)
Author:
vondreele
Message:

add SignedInteger? to the edf image format choices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1663 r1671  
    388388        image = np.array(ar.array('L',File.read(imSize)),dtype=np.int32)
    389389    elif dType == 'UnsignedLong':
    390         image = np.array(ar.array('L',File.read(imSize)),dtype=np.int32)       
     390        image = np.array(ar.array('L',File.read(imSize)),dtype=np.int32)
     391    elif dType == 'SignedInteger':
     392        image = np.array(ar.array('l',File.read(imSize)),dtype=np.int32)
    391393    image = np.reshape(image,(sizexy[1],sizexy[0]))
    392394    data = {'pixelSize':pixSize,'wavelength':wave,'distance':dist,'center':cent,'size':sizexy}
Note: See TracChangeset for help on using the changeset viewer.