Changeset 3063


Ignore:
Timestamp:
Sep 11, 2017 9:40:02 AM (4 years ago)
Author:
vondreele
Message:

improve auto peak search - tuning both lower limit & overlap rejection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3037 r3063  
    432432        x = x0[iBeg:iFin]
    433433        y0 = profile[1][iBeg:iFin]
    434         ysig = 0.5*np.std(y0)
     434        ysig = 1.0*np.std(y0)
    435435        offset = [-1,1]
    436436        ymask = ma.array(y0,mask=(y0<ysig))
     
    447447        for i,ref1 in enumerate(refs):      #reject picks closer than 1 FWHM
    448448            for ref2 in refs[i+1:]:
    449                 if abs(ref2[0]-ref1[0]) < G2pwd.getFWHM(ref1[0],inst):
     449                if abs(ref2[0]-ref1[0]) < 2.*G2pwd.getFWHM(ref1[0],inst):
    450450                    del(refs[i])
    451451        if 'C' in Inst['Type'][0]:   
Note: See TracChangeset for help on using the changeset viewer.