Skip to content

Commit

Permalink
address FutureWarning in indexing heartbeat (see previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
danibene authored Sep 6, 2023
1 parent d628415 commit 4647be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokit2/ecg/ecg_delineate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ def _ecg_delineator_peak_P(rpeak, heartbeat, R, Q):


def _ecg_delineator_peak_S(rpeak, heartbeat):
segment = heartbeat[0:] # Select right hand side
segment = heartbeat.iloc[0:] # Select right hand side
S = signal_findpeaks(
-segment["Signal"],
height_min=0.05 * (segment["Signal"].max() - segment["Signal"].min()),
Expand Down

0 comments on commit 4647be8

Please sign in to comment.