Skip to content

Commit 71ae6ac

Browse files
committed
fix code for alp/bet lookup in plot peak widths
1 parent 5d7188e commit 71ae6ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GSASII/GSASIImath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,10 +5123,10 @@ def setPeakparms(Parms,Parms2,pos,mag,ifQ=False,useFit=False):
51235123
pos = Parms['difC']*dsp
51245124
else:
51255125
dsp = pos/Parms['difC'][1]
5126-
if 'pdabc' in Parms2:
5126+
if 'pdabc' in Parms2 and len(Parms2['pdabc']):
51275127
for x in ['sig-0','sig-1','sig-2','sig-q','X','Y','Z']:
51285128
ins[x] = Parms.get(x,[0.0,0.0])[ind]
5129-
Pdabc = Parms2['pdabc'].T
5129+
Pdabc = Parms2['pdabc']
51305130
alp = np.interp(dsp,Pdabc[0],Pdabc[1])
51315131
bet = np.interp(dsp,Pdabc[0],Pdabc[2])
51325132
else:

0 commit comments

Comments
 (0)