Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Oct 30, 2024
1 parent 11abe0b commit 8e27d7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion pyTEMlib/eels_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,6 @@ def model3(x, p, number_of_peaks, peak_shape, p_zl, pin=None, restrict_pos=0, re
""" model for fitting low-loss spectrum"""
if pin is None:
pin = p
index = int(i * 3)

# if len([restrict_pos]) == 1:
# restrict_pos = [restrict_pos]*number_of_peaks
Expand Down
3 changes: 1 addition & 2 deletions pyTEMlib/peak_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ def plot(self):

self.axis.set_xlim(x_limit)
self.axis.set_ylim(y_limit)
y_limit = jj

for index, peak in self.peaks['peaks'].items():
p = [peak['position'], peak['amplitude'], peak['width']]
Expand Down Expand Up @@ -1127,4 +1126,4 @@ def gauss(x, p): # p[0]==mean, p[1]= amplitude p[2]==fwhm,
return x * 0.
else:
return p[1] * np.exp(-(x - p[0]) ** 2 / (2.0 * (p[2] / 2.3548) ** 2))


0 comments on commit 8e27d7e

Please sign in to comment.