Skip to content

Commit 28f6913

Browse files
committed
minor: comments on single-peak fit value def routines; change preference button labels
1 parent 51634d1 commit 28f6913

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

GSASII/GSASIIctrlGUI.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6884,17 +6884,17 @@ def OnNewColorBar(event):
68846884
self.varsizer.Add(rb, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
68856885
else:
68866886
if var.endswith('_directory') or var.endswith('_location'):
6887-
btn = wx.Button(self,wx.ID_ANY,'Select from dialog...')
6887+
btn = wx.Button(self,wx.ID_ANY,'Select from file dialog...')
68886888
btn.Bind(wx.EVT_BUTTON,self.onSelDir)
68896889
sz = (400,-1)
68906890
elif var.endswith('_exec'):
6891-
btn = wx.Button(self,wx.ID_ANY,'Select from dialog...')
6891+
btn = wx.Button(self,wx.ID_ANY,'Select from file dialog...')
68926892
btn.Bind(wx.EVT_BUTTON,self.onSelExec)
68936893
sz = (400,-1)
68946894
elif var.endswith('_color') and var != 'Contour_color':
68956895
self.colorText = wx.StaticText(self,wx.ID_ANY,size=(80,20))
68966896
self.colorChip = wx.StaticText(self,wx.ID_ANY,size=(80,30))
6897-
btn = wx.Button(self,wx.ID_ANY,'Select from dialog...')
6897+
btn = wx.Button(self,wx.ID_ANY,'Select from color selector...')
68986898
btn.Bind(wx.EVT_BUTTON,self.onSelColor)
68996899
sz = (400,-1)
69006900
else:

GSASII/GSASIIpwd.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,10 +2514,11 @@ def SetInstParms(Inst):
25142514
return dataType,instDict,insVary
25152515

25162516
def GetPkInstParms(parmDict,Inst,varyList):
2517-
'''This is where the default values for sigma & gamma
2518-
are set for peaks in single-peak fits when peakInstPrmMode is True
2519-
and the values are not being fit. This seems also to be done in
2520-
GetPeaksParms (TODO: this routine is not needed?)
2517+
'''This sets default values for sigma & gamma in the
2518+
single-peak fitting parameter dict when peakInstPrmMode is True
2519+
and the peak values are not being fit. (Why not alpha & beta?)
2520+
Note similar routine, GetPeaksParms, which sets values in the
2521+
peak table. (TODO: add setting of alpha & beta here?)
25212522
'''
25222523
for name in Inst:
25232524
Inst[name][1] = parmDict[name]
@@ -2596,9 +2597,12 @@ def SetPeaksParms(dataType,Peaks):
25962597
return peakDict,peakVary
25972598

25982599
def GetPeaksParms(Inst,parmDict,Peaks,varyList):
2599-
'''Put values into the Peaks list from the refinement results from inside
2600-
the parmDict array.
2601-
This is done prior for sigma & gamma in GetPkInstParms
2600+
'''Put single-peak fitting values into the Peaks List
2601+
from the refinement results. Where values are not fit (unless
2602+
peakInstPrmMode is False), they are computed from the
2603+
Instrument Parameter values.
2604+
Note that routine GetPkInstParms does this prior
2605+
for sigma & gamma (only).
26022606
'''
26032607
names,_,_ = getHeaderInfo(Inst['Type'][0])
26042608
off = 0

0 commit comments

Comments
 (0)