Changeset 2213 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Apr 15, 2016 9:34:00 AM (6 years ago)
Author:
vondreele
Message:

force delete of images after they are no longer needed during integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2212 r2213  
    8383            backImage += darkImage*darkScale               
    8484        sumImg += backImage*backScale
     85    if darkImg: del darkImg         #force cleanup
     86    if backImg: del backImg
    8587    sumImg -= data.get('Flat Bkg',0.)
    8688    return sumImg
     
    195197            sumImg = GetImageZ(G2frame,data)
    196198            G2frame.Integrate = G2img.ImageIntegrate(sumImg,data,masks,blkSize,dlg)
     199            del sumImg  #force cleanup
    197200            Id = G2IO.SaveIntegration(G2frame,G2frame.PickId,data,(event is None))
    198201            G2frame.PatternId = Id
     
    243246                                    G2gd.GetPatternTreeItemId(G2frame,id, 'Masks'))
    244247                                G2frame.Integrate = G2img.ImageIntegrate(image,Data,Masks,blkSize,dlgp)
     248                                del image   #force cleanup
    245249                                pId = G2IO.SaveIntegration(G2frame,Id,Data)
    246250                            finally:
     
    23152319        # do integration
    23162320        size,imagefile,imagetag = G2frame.PatternTree.GetImageLoc(imgId)
    2317 #        G2frame.ImageZ = G2IO.GetImageData(G2frame,imagefile,True,imagetag)     #pointless since done in OnIntegrate?
    23182321        masks = G2frame.PatternTree.GetItemPyData(
    2319                 G2gd.GetPatternTreeItemId(G2frame,G2frame.Image, 'Masks'))
     2322            G2gd.GetPatternTreeItemId(G2frame,G2frame.Image, 'Masks'))
    23202323        data = G2frame.PatternTree.GetItemPyData(G2frame.PickId)
    23212324        # simulate a Image Controls press, since that is where the
Note: See TracChangeset for help on using the changeset viewer.