Changeset 3017


Ignore:
Timestamp:
Aug 18, 2017 12:51:40 PM (4 years ago)
Author:
toby
Message:

change reading of "Chess" (Pilatus?) detector to uint32 to avoid overflow error on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_1TIF.py

    r2847 r3017  
    216216                File.seek(8)
    217217                print 'Read CHESS-detector tiff file: ',filename
    218                 image = np.array(ar.array('I',File.read(4*Npix)),dtype=np.int32)
     218                image = np.array(ar.array('I',File.read(4*Npix)),dtype=np.uint32)
    219219    elif 270 in IFD:
    220220        File.seek(IFD[270][2][0])
Note: See TracChangeset for help on using the changeset viewer.