Changeset 2044


Ignore:
Timestamp:
Nov 11, 2015 10:30:39 AM (6 years ago)
Author:
vondreele
Message:

put DEBUG back in for tif files, revise ImageJ section to be more general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_1TIF.py

    r2043 r2044  
    2222import GSASIIpath
    2323import numpy as np
     24DEBUG = False
    2425GSASIIpath.SetVersionNumber("$Revision: $")
    2526class TIF_ReaderClass(G2IO.ImportImage):
     
    111112        Tag,Type = st.unpack(byteOrd+'Hh',File.read(4))
    112113        nVal = st.unpack(byteOrd+'i',File.read(4))[0]
    113         #if DEBUG: print 'Try:',Tag,Type,nVal
     114        if DEBUG: print 'Try:',Tag,Type,nVal
    114115        if Type == 1:
    115116            Value = st.unpack(byteOrd+nVal*'b',File.read(nVal))
     
    129130            Value = st.unpack(byteOrd+nVal*'f',File.read(nVal*4))
    130131        IFD[Tag] = [Type,nVal,Value]
    131         #if DEBUG: print Tag,IFD[Tag]
     132        if DEBUG: print Tag,IFD[Tag]
    132133    sizexy = [IFD[256][2][0],IFD[257][2][0]]
    133134    [nx,ny] = sizexy
Note: See TracChangeset for help on using the changeset viewer.