@@ -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