Skip to content
Snippets Groups Projects
Commit 35e26f66 authored by Johannes Niskanen's avatar Johannes Niskanen
Browse files

A few comments clarified

parent 71e16cc5
No related branches found
No related tags found
2 merge requests!198Alignment of spectra,!188P2866 updates
...@@ -504,8 +504,8 @@ class hRIXS: ...@@ -504,8 +504,8 @@ class hRIXS:
# -gauss_fit # -gauss_fit
# start and stop are values of data.energy # start and stop are values of data.energy
# that define the range of these operations # that define the range of these operations
# RETURNS MAXIMUM POSITIONS AND data with # RETURNS LINE CENTER POSITIONS
# shifted spectra # (and in future perhaps shifted spectra)
#******************************************** #********************************************
searchinds = (data.energy >=start)*(data.energy <=stop) searchinds = (data.energy >=start)*(data.energy <=stop)
peak_posis = [] peak_posis = []
...@@ -524,6 +524,7 @@ class hRIXS: ...@@ -524,6 +524,7 @@ class hRIXS:
#******************************************** #********************************************
# Alignment based on autocorrelation # Alignment based on autocorrelation
# this is a relative alignment method # this is a relative alignment method
# where 1st readout defines the abs scale
#******************************************** #********************************************
elif method.lower() == 'autocorrelation': elif method.lower() == 'autocorrelation':
#******************************************** #********************************************
...@@ -585,7 +586,7 @@ class hRIXS: ...@@ -585,7 +586,7 @@ class hRIXS:
plt.plot(x,p.x[0]*Gauss(x,p.x[1],p.x[2])) 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.') raise Exception('align_readouts(): can not fit a gaussian to the data.')
else: else:
raise Exception('align_readouts() did recognize the method.') raise Exception('align_readouts() did not recognize the method.')
return peak_posis return peak_posis
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment