diff --git a/src/toolbox_scs/detectors/hrixs.py b/src/toolbox_scs/detectors/hrixs.py index 60e4b5d20909989abacdb1f4749f10a855168d38..052f1c5955a3fb201830a9a7dfb199d680f649dd 100644 --- a/src/toolbox_scs/detectors/hrixs.py +++ b/src/toolbox_scs/detectors/hrixs.py @@ -504,8 +504,8 @@ class hRIXS: # -gauss_fit # start and stop are values of data.energy # that define the range of these operations - # RETURNS MAXIMUM POSITIONS AND data with - # shifted spectra + # RETURNS LINE CENTER POSITIONS + # (and in future perhaps shifted spectra) #******************************************** searchinds = (data.energy >=start)*(data.energy <=stop) peak_posis = [] @@ -524,6 +524,7 @@ class hRIXS: #******************************************** # Alignment based on autocorrelation # this is a relative alignment method + # where 1st readout defines the abs scale #******************************************** elif method.lower() == 'autocorrelation': #******************************************** @@ -585,7 +586,7 @@ class hRIXS: plt.plot(x,p.x[0]*Gauss(x,p.x[1],p.x[2])) raise Exception('align_readouts(): can not fit a gaussian to the data.') else: - raise Exception('align_readouts() did recognize the method.') + raise Exception('align_readouts() did not recognize the method.') return peak_posis