Skip to content

Commit 70b05ac

Browse files
committed
bring kvec branch up to date
Merge remote-tracking branch 'origin/main' into kvec_isodistort_zyp
2 parents 7bec472 + 4725770 commit 70b05ac

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

GSASII/GSASIIplot.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,10 @@ def SetToolTipString(self,text):
290290
self.canvas.SetToolTipString(text)
291291

292292
def ToolBarDraw(self):
293-
mplv = eval(mpl.__version__.replace('.',','))
294-
if mplv[0] >= 3 and mplv[1] >= 3:
293+
try:
295294
self.toolbar.canvas.draw_idle()
296-
else:
295+
except: # patch: used for MLP <3.3
297296
self.toolbar.draw()
298-
# mplv = eval(mpl.__version__.replace('.',','))
299-
# if mplv[0] >= 3 and mplv[1] >= 3:
300-
# self.toolbar.draw_idle()
301-
# else:
302-
# self.toolbar.draw()
303297

304298
class G2PlotNoteBook(wx.Panel):
305299
'create a tabbed panel to hold a GSAS-II graphics window'

GSASII/GSASIIstrMath.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,6 @@ def GetReflPosDerv(refl,im,wave,A,pfx,hfx,phfx,calcControls,parmDict):
35023502
def GetHStrainShift(refl,im,SGData,phfx,hfx,calcControls,parmDict):
35033503
'''Computes the shifts in peak position due to the Hydrostatic strain
35043504
(HStrain, Dij terms).
3505-
This routine is not used anywhere
35063505
'''
35073506
laue = SGData['SGLaue']
35083507
uniq = SGData['SGUniq']
@@ -4034,7 +4033,7 @@ def SavePartial(phase,y):
40344033
Uniq = np.inner(refl[:3],SGMT)
40354034
refl[5+im] = GetReflPos(refl,im,0.0,A,pfx,hfx,phfx,calcControls,parmDict) #corrected reflection position - #TODO - what about tabluated offset?
40364035
Lorenz = sind(abs(parmDict[hfx+'2-theta'])/2)*refl[4+im]**4 #TOF Lorentz correction
4037-
# refl[5+im] += GetHStrainShift(refl,im,SGData,phfx,hfx,calcControls,parmDict) #apply hydrostatic strain shift
4036+
refl[5+im] += GetHStrainShift(refl,im,SGData,phfx,hfx,calcControls,parmDict) #apply hydrostatic strain shift
40384037
refl[6+im:8+im] = GetReflSigGamTOF(refl,im,G,GB,phfx,calcControls,parmDict) #peak sig & gam
40394038
refl[12+im:14+im] = GetReflAlpBet(refl,im,hfx,parmDict) #TODO - skip if alp, bet tabulated?
40404039
refl[11+im],refl[15+im],refl[16+im],refl[17+im] = GetIntensityCorr(refl,im,Uniq,G,g,pfx,phfx,hfx,SGData,calcControls,parmDict)

LICENSE

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ that the following conditions are met:
3232
Also note that GSAS-II is normally distributed with the following
3333
included software:
3434

35-
pybaselines: for license see GSASII/pybaselines/LICENSE.txt and
36-
GSASII/pybaselines/LICENSES_bundled.txt.
37-
3835
NIST_profile (Fundamental Parameters Python Code): U.S. Government work,
3936
not subject to copyright
4037

41-
PDFfit2: see PDFfit2/LICENSE.txt for license.
42-
43-
DIFFaX: Not copyrighted; Distributed with direct permission of M. Treacy
38+
DIFFaX: Not copyrighted; Distributed with direct permission of
39+
author (M. Treacy)
4440

4541
NIST*LATTICE: U.S. Government work, not subject to copyright
4642

0 commit comments

Comments
 (0)