From 8e27d7e0273c234a6fea874e58bb5a7aa1a138fe Mon Sep 17 00:00:00 2001 From: Gerd Duscher <50049264+gduscher@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:34:00 -0400 Subject: [PATCH] bug fix --- pyTEMlib/eels_tools.py | 1 - pyTEMlib/peak_dialog.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pyTEMlib/eels_tools.py b/pyTEMlib/eels_tools.py index cb6643ba..d01f5be9 100644 --- a/pyTEMlib/eels_tools.py +++ b/pyTEMlib/eels_tools.py @@ -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 diff --git a/pyTEMlib/peak_dialog.py b/pyTEMlib/peak_dialog.py index 78a920a6..8177423a 100644 --- a/pyTEMlib/peak_dialog.py +++ b/pyTEMlib/peak_dialog.py @@ -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']] @@ -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)) - \ No newline at end of file +