Skip to content

Commit

Permalink
The added peak type is a standard python int
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia committed Aug 27, 2024
1 parent e7b1f0a commit b9f0903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peakdet/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9f0903

Please sign in to comment.