Skip to content

Commit 3f1087c

Browse files
committed
More fixes to calibration stuff
1 parent 76282dd commit 3f1087c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

GSASII/GSASIIplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3461,8 +3461,8 @@ def OnKeyPress(event):
34613461
if len(peaks):
34623462
if G2frame.ErrorBars:
34633463
if Parms['Type'][0][2] in ['A','B']:
3464-
Plot.errorbar(Xp,Ap,xerr=sQp,yerr=sAp,fmt='r+',capsize=2,label=r'$\alpha/1000$ peak')
3465-
Plot.errorbar(Xp,Bp,xerr=sQp,yerr=sBp,fmt='+',color='orange',capsize=2,label=r'$\beta/1000$ peak')
3464+
Plot.errorbar(Xp,Ap,xerr=sXp,yerr=sAp,fmt='r+',capsize=2,label=r'$\alpha/1000$ peak')
3465+
Plot.errorbar(Xp,Bp,xerr=sXp,yerr=sBp,fmt='+',color='orange',capsize=2,label=r'$\beta/1000$ peak')
34663466
Plot.errorbar(Xp,Yp,xerr=sXp,yerr=sYp,fmt='r+',capsize=2,label='G peak')
34673467
Plot.errorbar(Xp,Zp,xerr=sXp,yerr=sZp,fmt='g+',capsize=2,label='L peak')
34683468
else:

GSASII/GSASIIpwd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ def errPeakBet(values,peakDsp,peakBet,peakWt,dataType,parmDict,varyList):
24352435
parmDict.update(dict(zip(varyList,values)))
24362436
if dataType[2] in ['A','B']:
24372437
calcPos = G2lat.getPeakPos(dataType,parmDict,peakDsp)
2438-
calcBet = parmDict['beta-0']+ parmDict['beat-1']*npsind(calcPos/2.)
2438+
calcBet = parmDict['beta-0']+ parmDict['beta-1']*npsind(calcPos/2.)
24392439
else: #'T'
24402440
calcBet = parmDict['beta-0']+parmDict['beta-1']/peakDsp**4+parmDict['beta-q']/peakDsp**2
24412441
return peakWt*(calcBet-peakBet)

GSASII/GSASIIpwdGUI.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,7 @@ def OnCalibrate(event):
25792579
return
25802580
if G2pwd.DoCalibInst(IndexPeaks,fitPeaks,data,Sample):
25812581
UpdateInstrumentGrid(G2frame,data)
2582+
G2plt.PlotPeakWidths(G2frame)
25822583
else:
25832584
G2frame.ErrorDialog('Cannot calibrate','Nothing selected for refinement or refinement failed')
25842585
const = 0.0

0 commit comments

Comments
 (0)