Skip to content

Commit

Permalink
setting 1.5 ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelleChapuis committed Jun 7, 2023
1 parent fec39d0 commit faeb5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neurodsp/waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faeb5ed

Please sign in to comment.