Changeset 4300


Ignore:
Timestamp:
Feb 13, 2020 6:59:45 PM (21 months ago)
Author:
toby
Message:

fix problem with missing SpotMask? entry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4299 r4300  
    76757675            Imin,Imax = Data['range'][1]
    76767676            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)
     7677            try:
     7678                MaskA = ma.getmaskarray(MA)^Masks['SpotMask']['spotMask']
     7679                MA = ma.array(MA,mask=MaskA)
     7680            except KeyError:
     7681                MaskA = ma.getmaskarray(MA)
    76797682            for xline in Masks.get('Xlines',[]):
    76807683                MaskA[xline,:] = True
Note: See TracChangeset for help on using the changeset viewer.