Changeset 2459 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Sep 6, 2016 10:44:55 AM (5 years ago)
Author:
vondreele
Message:

fix import of edf SignedLong? image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2449 r2459  
    586586    if dType == 'UnsignedShort':       
    587587        image = np.array(ar.array('H',File.read(imSize)),dtype=np.int32)
    588     elif dType == 'UnsignedInt':
     588    elif dType in ['UnsignedInt','UnsignedLong']:
    589589        image = np.array(ar.array('L',File.read(imSize)),dtype=np.int32)
    590     elif dType == 'UnsignedLong':
    591         image = np.array(ar.array('L',File.read(imSize)),dtype=np.int32)
    592     elif dType == 'SignedInteger':
     590    elif dType in ['SignedInteger','SignedLong']:
    593591        image = np.array(ar.array('l',File.read(imSize)),dtype=np.int32)
    594592    image = np.reshape(image,(sizexy[1],sizexy[0]))
Note: See TracChangeset for help on using the changeset viewer.