hrv-analysis icon indicating copy to clipboard operation
hrv-analysis copied to clipboard

Error with Frequency domain

Open simongeek opened this issue 5 years ago • 3 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?

simongeek avatar May 30 '19 19:05 simongeek

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 ?

clecoued avatar Aug 12 '19 15:08 clecoued

Hey Simon,

Could you provide the code snippet that generated the error?

Happy to help if necessary :)

Cheers, Robin

robinchampseix avatar Oct 14 '19 17:10 robinchampseix

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

flennic avatar Feb 11 '20 08:02 flennic