diff --git a/hrv.py b/hrv.py index a5f3854..2081064 100644 --- a/hrv.py +++ b/hrv.py @@ -116,6 +116,7 @@ def SDANN(self, rr_samples, average_period=5.0, normalise=False): average_period_samples = int(self.fs*average_period*60) average_rr_intervals = [] + rr_samples = np.array(rr_samples) sections = int((np.max(rr_samples)/average_period_samples)+0.5)