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

Values for Peak detection script parameters produce errors #10

Open
cskaandorp opened this issue Sep 3, 2020 · 0 comments
Open

Values for Peak detection script parameters produce errors #10

cskaandorp opened this issue Sep 3, 2020 · 0 comments

Comments

@cskaandorp
Copy link

cskaandorp commented Sep 3, 2020

Hi,

If you run EDA-Peak-Detection-Script.py and enter some settings for Minimum peak amplitude, Offset, Max rise time and Max decay time, the script produces an error:

File "EDA-Peak-Detection-Script.py", line 72, in findPeaks
peak_start[i - start_WT * sampleRate] = 1
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

I suspect that the input from the terminal is not converted into numerical data (start_WT is a string??).

If you just press return on the default settings everything is fine. Seems like an easy fix.

Cheers

Casper

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