Skip to content

ecg_process Bug when no R peaks detected #1151

@filipy1

Description

@filipy1

Describe the bug
Failure to run ecg_process when inside the function ecg_peaks doesn’t find any peaks, doesn’t handle rpeaks being an empty array (it does handle rpeaks is None).

Reproduce

  1. Load an ECG lead data with asystoles/low voltage/very wide QRS (I use 500 Hz sampling)
  2. Try and run the ecg_process function
  3. See error

Expected behaviour
I expected the function to return only the data it can calculate without detecting rpeaks

Screenshots
Example of ECG with error
Image

System Specifications

It's important that you give us some information about the system you are using. For that you can run:

Image

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