Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

ecg.ecg sometimes duplicates R peaks #35

Closed
stefperf opened this issue Nov 25, 2017 · 2 comments
Closed

ecg.ecg sometimes duplicates R peaks #35

stefperf opened this issue Nov 25, 2017 · 2 comments

Comments

@stefperf
Copy link

The function ecg.ecg sometimes reports the same R peak twice in a row, which may cause users' own downstream processing to fail (by calculating an R-R distance of zero). The corresponding heartbeat wave templates also get duplicated.
This happens, for example, at index 33 & 34 of the returned out['rpeaks'] and out['templates'] when the attached ecg is given as input.

ecg_resulting_in_duplicated_rpeaks.npy.zip

@capcarr
Copy link
Contributor

capcarr commented Nov 28, 2017

Hi @stefperf
Could you please indicate the sampling frequency of the signal, and the version of biosppy that you have installed?

@stefperf
Copy link
Author

Biosppy version = 0.5.0
sampling frequency = 300 Hz
(sorry for not realizing myself that this data was also needed)

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

No branches or pull requests

2 participants