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