Ignore:
Timestamp:
Apr 16, 2019 9:39:40 PM (3 years ago)
Author:
toby
Message:

implement fixed backgound file in Riteveld Fit; show Rietveld & peak fits with bkg file added to calc bkg, not subtracted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r3882 r3906  
    31523152    hfx = ':%d:'%(hId)
    31533153    bakType = calcControls[hfx+'bakType']
    3154     yb,Histogram['sumBk'] = G2pwd.getBackground(hfx,parmDict,bakType,calcControls[hfx+'histType'],x)
     3154    fixedBkg = {i:Histogram['Background'][1][i] for i in Histogram['Background'][1] if i.startswith("_")}
     3155    yb,Histogram['sumBk'] = G2pwd.getBackground(hfx,parmDict,bakType,calcControls[hfx+'histType'],x,fixedBkg)
    31553156    yc = np.zeros_like(yb)
    31563157    cw = np.diff(ma.getdata(x))
Note: See TracChangeset for help on using the changeset viewer.