Aura-healthcare / hrv-analysis

Package for Heart Rate Variability analysis in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with Frequency domain

simongeek opened this issue · comments

Hi,

I have issue with frequency domain, if I resample my RR intervals into segments less than 50 minutes.

For segments greather than 50 minutes it's OK, but if I use less, for example 5-minutes intervals I got error:

IndexError: index out of bounds

Do you know why and how to solve it?

Hi @simongeek,

Could you provide us a 5 minutes RR-interval list you are using that generated the index out of bound error ?
Do you include Nan values in your samples ?

Hey Simon,

Could you provide the code snippet that generated the error?

Happy to help if necessary :)

Cheers,
Robin

I had the same issue providing a pandas series and not a list as an input for the frequency feature function. Created a pull request that fixes the issue.

Regards
flennic