From b9f09039cb2dbe8c8954a659fd96fb10402a5cd5 Mon Sep 17 00:00:00 2001 From: Stefano Moia Date: Fri, 23 Aug 2024 09:32:28 +0200 Subject: [PATCH] The added peak type is a standard python int --- peakdet/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peakdet/editor.py b/peakdet/editor.py index e3cd0ba..c4d69b8 100644 --- a/peakdet/editor.py +++ b/peakdet/editor.py @@ -161,7 +161,7 @@ def on_edit(self, xmin, xmax, *, method): if method == "insert": tmp = np.argmax(self.data.data[tmin:tmax]) if tmin != tmax else 0 - newpeak = tmin + tmp + newpeak = int(tmin + tmp) if newpeak == tmin: self.plot_signals() return