Changeset 4112


Ignore:
Timestamp:
Aug 26, 2019 7:27:07 AM (2 years ago)
Author:
vondreele
Message:

subject image read time messages to debug control

Location:
trunk/imports
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_1TIF.py

    r4021 r4112  
    363363        lines = ['not a known detector tiff file',]
    364364        return lines,0,0,0
    365     G2fil.G2Print ('image read time: %.3f'%(time.time()-time0))
     365    if GSASIIpath.GetConfigValue('debug'):
     366        G2fil.G2Print ('image read time: %.3f'%(time.time()-time0))
    366367    image = np.reshape(image,(sizexy[1],sizexy[0]))
    367368    center = (not center[0]) and [pixy[0]*sizexy[0]/2000,pixy[1]*sizexy[1]/2000] or center
  • trunk/imports/G2img_GE.py

    r3828 r4112  
    197197    data = {'pixelSize':[200.,200.],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy}
    198198    File.close()
    199     print ('Image read time %.2fs'%(time.time()-time0))
    200199    if GSASIIpath.GetConfigValue('debug'):
     200        print ('Image read time %.2fs'%(time.time()-time0))
    201201        print ('Read GE file: '+filename+' image #'+'%04d'%(imagenum))
    202202    return head,data,Npix,image,more
  • trunk/imports/G2img_MAR.py

    r3146 r4112  
    9696        raw = np.frombuffer(File.read(),dtype=np.uint8)
    9797        image = np.flipud(pf.pack_f3(len(raw),raw,sizex,sizey,image).T)  #transpose to get it right way around & flip
    98     print ('image read time: %.3f'%(time.time()-time0))
     98    if GSASIIpath.GetConfigValue('debug'):
     99        print ('image read time: %.3f'%(time.time()-time0))
    99100    File.close()
    100101    if imageOnly:
Note: See TracChangeset for help on using the changeset viewer.