Ignore:
Timestamp:
Nov 6, 2017 4:32:17 PM (4 years ago)
Author:
vondreele
Message:

male all default image pixel sizes [200.,200.] so ValidatedTxtCtrl? treats them as floats.
Fix crash when data is deleted from tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_GE.py

    r3136 r3151  
    180180            filename = os.path.splitext(filename)[0]+'.G2img'
    181181            File = open(filename,'wb')
    182             Data = {'pixelSize':[200,200],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy}
     182            Data = {'pixelSize':[200.,200.],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy}
    183183            image = np.reshape(image,(sizexy[1],sizexy[0]))
    184184            cPickle.dump([head,Data,Npix,image],File,1)
     
    188188            sum = False
    189189    image = np.reshape(image,(sizexy[1],sizexy[0]))
    190     data = {'pixelSize':[200,200],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy}
     190    data = {'pixelSize':[200.,200.],'wavelength':0.15,'distance':250.0,'center':[204.8,204.8],'size':sizexy}
    191191    File.close()
    192192    print ('Image read time %.2fs'%(time.time()-time0))
Note: See TracChangeset for help on using the changeset viewer.