From 22b162cccef09ea3464aa87ebe95f38a60101aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gastaud?= Date: Sat, 30 Nov 2024 11:54:07 +0100 Subject: [PATCH 1/2] changed ecg quality interpolation from quadratic to linear --- neurokit2/ecg/ecg_quality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neurokit2/ecg/ecg_quality.py b/neurokit2/ecg/ecg_quality.py index 2275c51493..83d99587f3 100644 --- a/neurokit2/ecg/ecg_quality.py +++ b/neurokit2/ecg/ecg_quality.py @@ -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="linear" ) return quality From 8284fdf01daa32ec84c0bccf804146e026467e1b Mon Sep 17 00:00:00 2001 From: Dominique Makowski Date: Tue, 3 Dec 2024 17:44:07 +0000 Subject: [PATCH 2/2] Update neurokit2/ecg/ecg_quality.py --- neurokit2/ecg/ecg_quality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neurokit2/ecg/ecg_quality.py b/neurokit2/ecg/ecg_quality.py index 83d99587f3..a4f804d1dc 100644 --- a/neurokit2/ecg/ecg_quality.py +++ b/neurokit2/ecg/ecg_quality.py @@ -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="linear" + rpeaks, quality, x_new=np.arange(len(ecg_cleaned)), method="previous" ) return quality