Changeset 4325 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Feb 22, 2020 11:14:33 AM (5 years ago)
Author:
vondreele
Message:

small RMCProfile fixes
New auto spot mask version - works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIimage.py ΒΆ

    r4324 r4325  
    14781478    for it,TTh in enumerate(TThs):
    14791479        band.mask = ma.masked_outside(TA,TTh,TTh+dtth).mask+tam
    1480         pcmax = np.percentile(band,prob)
     1480        pcmax = np.percentile(band.compressed(),prob)
    14811481        mband = ma.masked_greater(band,pcmax)
    1482         mean = ma.median(mband)
     1482        mean = ma.mean(mband)
    14831483        std = ma.std(mband)
    14841484        anom = ma.masked_greater((band-mean)/std,esdMul)
    14851485        mask ^= (anom.mask^band.mask)
    14861486        if not dlg is None:
    1487             dlg.Raise()
    14881487            GoOn = dlg.Update(it,newmsg='Processed 2-theta rings = %d'%(it))
    14891488            if not GoOn[0]:
Note: See TracChangeset for help on using the changeset viewer.