rhenanbartels / hrv

A Python package for heart rate variability analysis
BSD 3-Clause "New" or "Revised" License
194 stars 57 forks source link

Correct RRi duration info after `time_range` method is used #20

Closed rhenanbartels closed 4 years ago

rhenanbartels commented 4 years ago

Currently, the RRi class is calculating the duration of the RRi series by simpling using time[-1]. This is resulting in an error after spliting the signal with time_range.

Solution: use time[-1] - time[0]

rhenanbartels commented 4 years ago

solved by f2da530774cdd44894c