Changeset 801 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Nov 15, 2012 10:44:32 AM (9 years ago)
Author:
vondreele
Message:

fix TOF peak fitting - needed cw*derivs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r798 r801  
    970970                dMdpk = np.zeros(shape=(7,len(xdata)))
    971971                dMdipk = getdEpsVoigt(pos,alp,bet,sig,gam,xdata[iBeg:iFin])
     972                cw = np.diff(xdata[iBeg:iFin])
     973                cw = np.append(cw,cw[-1])
    972974                for i in range(1,6):
    973                     dMdpk[i][iBeg:iFin] += intens*dMdipk[i]
    974                 dMdpk[0][iBeg:iFin] += dMdipk[0]
     975                    dMdpk[i][iBeg:iFin] += intens*cw*dMdipk[i]
     976                dMdpk[0][iBeg:iFin] += cw*dMdipk[0]
    975977                dervDict = {'int':dMdpk[0],'pos':dMdpk[1],'alp':dMdpk[2],'bet':dMdpk[3],'sig':dMdpk[4],'gam':dMdpk[5]}
    976978                for parmName in ['pos','int','alp','bet','sig','gam']:
Note: See TracChangeset for help on using the changeset viewer.