Changeset 4820 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Feb 17, 2021 3:05:30 PM (2 years ago)
Author:
vondreele
Message:

remove masks from argument list for MakeGainMap? - not used
Tweak gain map limits
fix to OnOrigX & OnOrien? - now set atom site fractions to the max found for atoms in RB
"fix" (with a try except) for the occasional crash on finding a nonexistent Pattern. Now just skips & tries again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r4796 r4820  
    171171        G2frame.Integrate = G2img.ImageIntegrate(sumImg,Data,masks,blkSize)           
    172172        Iy,azms,Ix = G2frame.Integrate[:3]
    173         GainMap = G2img.MakeGainMap(sumImg,Ix,Iy,Data,masks,blkSize)*1000.
     173        GainMap = G2img.MakeGainMap(sumImg,Ix,Iy,Data,blkSize)*1000.
    174174        Npix,imagefile,imagetag = G2IO.GetCheckImageFile(G2frame,G2frame.Image)
    175175        pth = os.path.split(os.path.abspath(imagefile))[0]
     
    181181            newimagefile = G2IO.FileDlgFixExt(dlg,newimagefile)
    182182            Data['formatName'] = 'GSAS-II image'
    183             Data['range'] = [(800,1200),[800,1200]]
    184             GainMap = np.where(GainMap > 1200,1000,GainMap)
    185             GainMap = np.where(GainMap < 800,1000,GainMap)
     183            Data['range'] = [(500,2000),[800,1200]]
     184            GainMap = np.where(GainMap > 1200,1200,GainMap)
     185            GainMap = np.where(GainMap < 800,800,GainMap)
    186186            G2IO.PutG2Image(newimagefile,[],data,Npix,GainMap)
    187187            GMname = 'IMG '+os.path.split(newimagefile)[1]
Note: See TracChangeset for help on using the changeset viewer.