Changeset 2288


Ignore:
Timestamp:
May 23, 2016 2:56:50 PM (6 years ago)
Author:
vondreele
Message:

fix problem with incompatible arrays in dark correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2284 r2288  
    7070            imagefile = G2IO.CheckImageFile(G2frame,imagefile)
    7171            darkImage = G2IO.GetImageData(G2frame,imagefile,True,ImageTag=imagetag)
    72             sumImg += darkImage*darkScale
     72            sumImg += np.array(darkImage*darkScale,dtype='int32')
    7373    if not 'background image' in data:
    7474        return sumImg
     
    8686                imagefile = G2IO.CheckImageFile(G2frame,imagefile)
    8787                darkImage = G2IO.GetImageData(G2frame,imagefile,True,ImageTag=imagetag)
    88                 backImage += darkImage*darkScale               
    89             sumImg += backImage*backScale
     88                backImage += np.array(darkImage*darkScale,dtype='int32')               
     89            sumImg += np.array(backImage*backScale,dtype='int32')
    9090    if darkImg: del darkImg         #force cleanup
    9191    if backImg: del backImg
Note: See TracChangeset for help on using the changeset viewer.