Skip to content

Commit

Permalink
Merge pull request #79 from smoia/fix/history
Browse files Browse the repository at this point in the history
Fix type errors in exporting history after manually adding peaks
  • Loading branch information
smoia authored Aug 27, 2024
2 parents 250f7c7 + fe4a620 commit 1ebf46a
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 1ebf46a

Please sign in to comment.