Changeset 3152


Ignore:
Timestamp:
Nov 10, 2017 4:36:45 PM (4 years ago)
Author:
toby
Message:

Fix bug with PE .raw.tif reads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_1TIF.py

    r3151 r3152  
    277277#                    image = np.array(ar.array('f',File.read(4*Npix)),dtype=np.int32)
    278278                else:
    279                     image = np.array(np.frombuffer(File.read(4*Npix),dtype=np.int),dtype=np.int32)
     279                    image = np.array(np.frombuffer(File.read(4*Npix),dtype=np.int32),dtype=np.int32)
    280280#                    image = np.fromfile(File,dtype=np.int,count=4*Npix)[:Npix]
    281281#                    image = np.array(ar.array('I',File.read(4*Npix)),dtype=np.int32)
Note: See TracChangeset for help on using the changeset viewer.