Changeset 4112
- Timestamp:
- Aug 26, 2019 7:27:07 AM (4 years ago)
- Location:
- trunk/imports
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2img_1TIF.py
r4021 r4112 363 363 lines = ['not a known detector tiff file',] 364 364 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)) 366 367 image = np.reshape(image,(sizexy[1],sizexy[0])) 367 368 center = (not center[0]) and [pixy[0]*sizexy[0]/2000,pixy[1]*sizexy[1]/2000] or center -
trunk/imports/G2img_GE.py
r3828 r4112 197 197 data = {'pixelSize':[200.,200.],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy} 198 198 File.close() 199 print ('Image read time %.2fs'%(time.time()-time0))200 199 if GSASIIpath.GetConfigValue('debug'): 200 print ('Image read time %.2fs'%(time.time()-time0)) 201 201 print ('Read GE file: '+filename+' image #'+'%04d'%(imagenum)) 202 202 return head,data,Npix,image,more -
trunk/imports/G2img_MAR.py
r3146 r4112 96 96 raw = np.frombuffer(File.read(),dtype=np.uint8) 97 97 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)) 99 100 File.close() 100 101 if imageOnly:
Note: See TracChangeset
for help on using the changeset viewer.