Skip to content

Commit

Permalink
Merge pull request #1054 from cgastaud/bugfix-ecg_quality
Browse files Browse the repository at this point in the history
[Change] ecg_quality interpolation from quadratic to "previous"
  • Loading branch information
DominiqueMakowski authored Dec 8, 2024
2 parents 1d30473 + 8284fdf commit a707a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokit2/ecg/ecg_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _ecg_quality_averageQRS(ecg_cleaned, rpeaks=None, sampling_rate=1000):

# Interpolate
quality = signal_interpolate(
rpeaks, quality, x_new=np.arange(len(ecg_cleaned)), method="quadratic"
rpeaks, quality, x_new=np.arange(len(ecg_cleaned)), method="previous"
)

return quality
Expand Down

0 comments on commit a707a2d

Please sign in to comment.