From faeb5edca5c7d2349ae182302839355a348aa73f Mon Sep 17 00:00:00 2001 From: Gaelle Date: Wed, 7 Jun 2023 17:18:40 +0200 Subject: [PATCH] setting 1.5 ratio --- src/neurodsp/waveforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neurodsp/waveforms.py b/src/neurodsp/waveforms.py index 42314f7..22a0983 100644 --- a/src/neurodsp/waveforms.py +++ b/src/neurodsp/waveforms.py @@ -185,7 +185,7 @@ def find_tip_trough(arr_peak, arr_peak_real, df): # Call the function again to compute trough etc. with new peak assigned # Find df rows to be changed - df_index = df.index[(df['peak_val'] > 0) & (df['peak_to_trough_ratio'] <= 1.2)] + df_index = df.index[(df['peak_val'] > 0) & (df['peak_to_trough_ratio'] <= 1.5)] df_rows = df.iloc[df_index] if len(df_index) > 0: # New peak - Swap peak for trough values