Changeset 4299 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 13, 2020 9:56:45 AM (22 months ago)
Author:
vondreele
Message:

new spot mask algorithm - it is slow but works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4298 r4299  
    76747674        if newImage:
    76757675            Imin,Imax = Data['range'][1]
    7676             MA = ma.masked_greater(ma.masked_less(G2frame.ImageZ,Zlim[0]),Zlim[1])           
    7677             MaskA = ma.getmaskarray(MA)
     7676            MA = ma.masked_outside(G2frame.ImageZ,Zlim[0],Zlim[1])
     7677            MaskA = ma.getmaskarray(MA)^Masks['SpotMask']['spotMask']
     7678            MA = ma.array(MA,mask=MaskA)
    76787679            for xline in Masks.get('Xlines',[]):
    76797680                MaskA[xline,:] = True
Note: See TracChangeset for help on using the changeset viewer.