Skip to content

Commit

Permalink
Merge pull request #77 from smoia/fix/history
Browse files Browse the repository at this point in the history
Fix type of added peak index to int (vs current np.int64)
  • Loading branch information
smoia authored Aug 22, 2024
2 parents 5228f8a + 02f5475 commit c0d07f2
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 c0d07f2

Please sign in to comment.