Ignore:
Timestamp:
Dec 12, 2020 1:30:31 PM (5 years ago)
Author:
vondreele
Message:

add refinable multiplier for a fixed background; multiplier is now normally > 0
usable for peak fitting and Rietved refinement
add the fixed background entry to all background defaults
fix bug in GetDetectorXY fo when cursor outside image - returns [0,0] not None; changes elsewhere to use this
GetTthAzmDsp? now returns explicit list not assumed tuple
put the abs in the nl.qr test for singularities in HessianLSQ
Add 'BF mult' to name list in G2obj
put a try - except TypeError? around setting plot style stuff in PlotPatterns?
Remove the setting of Pattern[0]BackFile? - this was redundant for PWDR
remove picker/pickradius from linescan plot - failed
remove the alternate fixed background definition ('_fixedVary', etc.)
clear the PhaseReaderClass?Drawing? dictionary upon import of phase from a gpx file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIstrMath.py

    r4665 r4671  
    31903190    hfx = ':%d:'%(hId)
    31913191    bakType = calcControls[hfx+'bakType']
    3192     fixedBkg = {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,fixedBkg)
     3192    fixback = Histogram['Background'][1].get('fixback',None)
     3193    yb,Histogram['sumBk'] = G2pwd.getBackground(hfx,parmDict,bakType,calcControls[hfx+'histType'],x,fixback)
    31943194    yc = np.zeros_like(yb)
    31953195    cw = np.diff(ma.getdata(x))
     
    34413441    bakType = calcControls[hfx+'bakType']
    34423442    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)
    34443445    if prc == 0 and hfx+'Back;0' in varylist: # for now assume that Back;x vars to not appear in constraints
    34453446        bBpos = varylist.index(hfx+'Back;0')
     
    34603461                ip = names.index(parm)
    34613462                dMdv[varylist.index(name)] += dMdpk[4*Id+ip]
     3463    if hfx+'BF mult' in varylist:
     3464        dMdv[varylist.index(hfx+'BF mult')] += dMdfb
    34623465    cw = np.diff(ma.getdata(x))
    34633466    cw = np.append(cw,cw[-1])
Note: See TracChangeset for help on using the changeset viewer.