Changeset 3315


Ignore:
Timestamp:
Mar 15, 2018 11:05:56 AM (4 years ago)
Author:
vondreele
Message:

fix mask issues lines ~2400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3314 r3315  
    24132413            # recompute mask from excluded regions, in case they have changed
    24142414            excls = limits[2:]
    2415             xye0.mask = False # resets mask for xye0 & Pattern[1][0](!)
     2415            xye0 = ma.array(xye0,mask=False)
     2416#            xye0.mask = False # resets mask for xye0 & Pattern[1][0](!)
    24162417            for excl in excls:
    24172418                xye0 = ma.masked_inside(xye0,excl[0],excl[1]) # sets mask on xye0 but not Pattern[1][0] !
    2418             Pattern[1][0].mask = xye0.mask # transfer the mask
     2419            Pattern[1][0] = ma.array(Pattern[1][0],mask=ma.getmask(xye0))
     2420#            Pattern[1][0].mask = xye0.mask # transfer the mask
    24192421        if G2frame.plotStyle['qPlot'] and 'PWDR' in plottype:
    24202422            X = 2.*np.pi/G2lat.Pos2dsp(Parms,xye0)
Note: See TracChangeset for help on using the changeset viewer.