Skip to content

Commit 1337d03

Browse files
committed
fix spinning RB derivatives for HKLF & PWDR
1 parent 7e139c4 commit 1337d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GSASII/GSASIIstrMath.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ def MakePolar(Orient,QB):
453453

454454
dFFdS = {}
455455
atFlg = []
456-
R,Th,Ph = G2lat.H2ThPh2(np.reshape(HKL,(-1,3)),Bmat)
456+
# R,Th,Ph = G2lat.H2ThPh2(np.reshape(HKL,(-1,3)),Bmat)
457457
SQR = np.repeat(SQ,HKL.shape[1])
458458
for iAt,Atype in enumerate(Tdata):
459459
if 'Q' in Atype:
460-
R,Th,Ph = G2lat.H2ThPh2(np.reshape(HKL,(-1,3)),Bmat)
460+
# R,Th,Ph = G2lat.H2ThPh2(np.reshape(HKL,(-1,3)),Bmat)
461461
atFlg.append(1.0)
462462
SHdat = SHCdict[iAt]
463463
symAxis = np.array(SHdat['symAxis'])
@@ -1419,7 +1419,7 @@ def StructureFactorDerv2(refDict,G,hfx,pfx,SGData,calcControls,parmDict):
14191419
dFdvDict[pfx+'AU13:'+str(i)] = dFdua.T[4][i]
14201420
dFdvDict[pfx+'AU23:'+str(i)] = dFdua.T[5][i]
14211421
for item in dffdSH:
1422-
if 'SH' in item or 'O' in item:
1422+
if 'Sh' in item or 'O' in item:
14231423
if i == int(item.split(':')[1]):
14241424
dFdvDict[pfx+'RBS'+item] = np.sum(dFdff[:,:,i]*np.reshape(dffdSH[item],(nRef,-1)),axis=1)
14251425
else:

0 commit comments

Comments
 (0)