Skip to content

Find_clipping issue #72

@SchollJ

Description

@SchollJ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions