systole icon indicating copy to clipboard operation
systole copied to clipboard

Find_clipping issue

Open SchollJ opened this issue 1 year ago • 0 comments
trafficstars

I'm new to python (installed it to analyse data we collected with your heart rate task). I'm doing the preprocessing of the data to find outliers. Running in a loop, a few trials work, but then I'm getting an error message. I've been trying to track it down. I think what it is is that in find_clipping, if there is only one maximum value, max_threshold is returned as None. And then in interpolate_clipping it produces an error.

This is from running: signal, peaks = ppg_peaks(my_df, sfreq=1000)

I'm attaching the data part that is giving me the issue. It runs when I set: clipping='false', but I'm not sure that's a good idea. test_data.csv

SchollJ avatar Oct 17 '24 08:10 SchollJ