Skip to content

Commit

Permalink
Fix type of added peak
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia committed Aug 22, 2024
1 parent 5228f8a commit 02f5475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peakdet/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def add_peaks(data, add):
data : Physio_like
"""
data = utils.check_physio(data, ensure_fs=False, copy=True)
idx = np.searchsorted(data._metadata["peaks"], add)
idx = int(np.searchsorted(data._metadata["peaks"], add))
data._metadata["peaks"] = np.insert(data._metadata["peaks"], idx, add)
data._metadata["troughs"] = utils.check_troughs(data, data.peaks)

Expand Down

0 comments on commit 02f5475

Please sign in to comment.