Changeset 4674


Ignore:
Timestamp:
Dec 17, 2020 10:35:02 AM (9 months ago)
Author:
vondreele
Message:

fix background fitting from fixed points - now will also fir fixed background multiplier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4671 r4674  
    13271327        W = [1]*len(xdata)
    13281328        Z = [0]*len(xdata)
     1329        bxye = GetFileBackground(G2frame,data,background,scale=False)[xBeg:xFin]
     1330        if not np.any(bxye):
     1331            bxye = None
    13291332
    13301333        # load instrument and background params
     
    13441347        try:
    13451348            G2pwd.DoPeakFit('LSQ',[],background,limits,inst,inst2,
    1346                 np.array((xdata,ydata,W,Z,Z,Z)),Z,prevVaryList=bakVary,controls=controls)
     1349                np.array((xdata,ydata,W,Z,Z,Z)),bxye,prevVaryList=bakVary,controls=controls)
    13471350        finally:
    13481351            wx.EndBusyCursor()
     
    13551358        pwddata[3][xBeg:xFin] *= 0.
    13561359        pwddata[5][xBeg:xFin] *= 0.
    1357         pwddata[4][xBeg:xFin] = G2pwd.getBackground('',parmDict,bakType,dataType,xdata)[0]
     1360        pwddata[4][xBeg:xFin] = G2pwd.getBackground('',parmDict,bakType,dataType,xdata,bxye)[0]
    13581361        G2plt.PlotPatterns(G2frame,plotType='PWDR')
    13591362        # show the updated background values
Note: See TracChangeset for help on using the changeset viewer.