Changeset 4671 for trunk/GSASIIstrMath.py
- Timestamp:
- Dec 12, 2020 1:30:31 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIstrMath.py ¶
r4665 r4671 3190 3190 hfx = ':%d:'%(hId) 3191 3191 bakType = calcControls[hfx+'bakType'] 3192 fix edBkg = {i:Histogram['Background'][1][i] for i in Histogram['Background'][1] if i.startswith("_")}3193 yb,Histogram['sumBk'] = G2pwd.getBackground(hfx,parmDict,bakType,calcControls[hfx+'histType'],x,fix edBkg)3192 fixback = Histogram['Background'][1].get('fixback',None) 3193 yb,Histogram['sumBk'] = G2pwd.getBackground(hfx,parmDict,bakType,calcControls[hfx+'histType'],x,fixback) 3194 3194 yc = np.zeros_like(yb) 3195 3195 cw = np.diff(ma.getdata(x)) … … 3441 3441 bakType = calcControls[hfx+'bakType'] 3442 3442 dMdv = np.zeros(shape=(len(varylist),len(x))) 3443 dMdb,dMddb,dMdpk = G2pwd.getBackgroundDerv(hfx,parmDict,bakType,calcControls[hfx+'histType'],x) 3443 fixback = Histogram['Background'][1].get('fixback',None) 3444 dMdb,dMddb,dMdpk,dMdfb = G2pwd.getBackgroundDerv(hfx,parmDict,bakType,calcControls[hfx+'histType'],x,fixback) 3444 3445 if prc == 0 and hfx+'Back;0' in varylist: # for now assume that Back;x vars to not appear in constraints 3445 3446 bBpos = varylist.index(hfx+'Back;0') … … 3460 3461 ip = names.index(parm) 3461 3462 dMdv[varylist.index(name)] += dMdpk[4*Id+ip] 3463 if hfx+'BF mult' in varylist: 3464 dMdv[varylist.index(hfx+'BF mult')] += dMdfb 3462 3465 cw = np.diff(ma.getdata(x)) 3463 3466 cw = np.append(cw,cw[-1])
Note: See TracChangeset
for help on using the changeset viewer.