Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find_clipping issue #72

Open
SchollJ opened this issue Oct 17, 2024 · 0 comments
Open

Find_clipping issue #72

SchollJ opened this issue Oct 17, 2024 · 0 comments

Comments

@SchollJ
Copy link

SchollJ commented Oct 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant