Skip to content

Values for Peak detection script parameters produce errors #10

Description

@cskaandorp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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