Changeset 4301 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 13, 2020 7:26:18 PM (3 years ago)
Author:
toby
Message:

initialize SpotMask? for image import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4300 r4301  
    76787678                MaskA = ma.getmaskarray(MA)^Masks['SpotMask']['spotMask']
    76797679                MA = ma.array(MA,mask=MaskA)
    7680             except KeyError:
    7681                 MaskA = ma.getmaskarray(MA)
     7680            except KeyError: # should not be needed if initializtion is proper
     7681                if GSASIIpath.GetConfigValue('debug'): print('SpotMask missing')
     7682                MaskA = ma.getmaskarray(MA)
     7683            except TypeError: # needed if spotMasks set to initial value (None)
     7684                if GSASIIpath.GetConfigValue('debug'): print('spotMask is None')
     7685                MaskA = ma.getmaskarray(MA)
    76827686            for xline in Masks.get('Xlines',[]):
    76837687                MaskA[xline,:] = True
Note: See TracChangeset for help on using the changeset viewer.