Skip to content

Commit b2faaca

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents bcc6866 + bf28bfd commit b2faaca

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

GSASII/GSASIIdataGUI.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8190,7 +8190,6 @@ def OnPlotAll3DHKL(event):
81908190
'backColor':[0,0,0],'depthFog':False,'Zclip':10.0,'cameraPos':10.,'Zstep':0.05,'viewUp':[0,1,0],
81918191
'Scale':1.0,'oldxy':[],'viewDir':[1,0,0]},'Super':Super,'SuperVec':SuperVec}
81928192
G2plt.Plot3DSngl(G2frame,newPlot=True,Data=controls,hklRef=refList,Title=phaseName)
8193-
81948193

81958194
def OnMergeHKL(event):
81968195
'''Merge HKLF data sets to unique set according to Laue symmetry'''
@@ -8249,7 +8248,6 @@ def OnMergeHKL(event):
82498248
if Nhkl not in Nmerge:
82508249
Nmerge.update({Nhkl:[1,0],})
82518250
MaxN = max(MaxN,Nhkl)
8252-
82538251
else:
82548252
Nmerge[Nhkl][0] += 1
82558253
newHKL = list(HKL[0])+list(HKL[1][0])

GSASII/GSASIIddataGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def OnFixVals(event):
937937
if 'Twins' not in UseList[G2frame.hist]:
938938
UseList[G2frame.hist]['Twins'] = [[np.array([[1,0,0],[0,1,0],[0,0,1]]),[1.0,False]],]
939939
if 'Ma' not in UseList[G2frame.hist]['Extinction'][2]:
940-
UseList[G2frame.hist]['Extinction'][2].update({'Ma':[1.0,False]})
940+
UseList[G2frame.hist]['Extinction'][2].update({'Ma':[0.0,False]})
941941
UseList[G2frame.hist]['Extinction'][2].update({'Mb':[0.0,False]})
942942
if 'Mc' not in UseList[G2frame.hist]['Extinction'][2]:
943943
UseList[G2frame.hist]['Extinction'][2].update({'Mc':[0.0,False]})

GSASII/GSASIIstrMath.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,11 +2745,12 @@ def SCExtinction(ref,im,phfx,hfx,pfx,calcControls,parmDict,varyList):
27452745
PA = np.exp(-parmDict[phfx+'Ma']*FPone)
27462746
PB = np.exp(-parmDict[phfx+'Mb']*FPone**2)
27472747
PC = np.exp(-parmDict[phfx+'Mc']*FPone**3)
2748-
extCor = (PA + PB + PC)/3.
2749-
dervDict[phfx+'Ma'] = -4.*PA*FPone**2
2750-
dervDict[phfx+'Mb'] = -PB*FPone**4
2751-
dervDict[phfx+'Mc'] = -PC*FPone**6
2752-
return extCor,dervDict
2748+
extCor = (PA + PB + PC)/3.
2749+
dE2 = 6./extCor**2
2750+
dervDict[phfx+'Ma'] = dE2*PA*FPone**2
2751+
dervDict[phfx+'Mb'] = dE2*PB*FPone**3
2752+
dervDict[phfx+'Mc'] = dE2*PC*FPone**4
2753+
return 1./extCor,dervDict
27532754

27542755
if calcControls[phfx+'EType'] != 'None':
27552756
SQ = 1/(4.*ref[4+im]**2)
@@ -2774,7 +2775,6 @@ def SCExtinction(ref,im,phfx,hfx,pfx,calcControls,parmDict,varyList):
27742775
DScorr = 1.0
27752776
if 'Primary' in calcControls[phfx+'EType']:
27762777
PLZ *= 1.5
2777-
FPone = ref[9+im]+1.0
27782778
DScorr = 1.
27792779
else:
27802780
if 'C' in parmDict[hfx+'Type']:

0 commit comments

Comments
 (0)