Skip to content

Commit 66e00bd

Browse files
authored
Fix compute_rri warning in hrv.py (#69)
1 parent 105f770 commit 66e00bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biosppy/signals/hrv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def compute_rri(rpeaks, sampling_rate=1000., filter_rri=True, show=False):
245245
rri = rri_filter(rri)
246246

247247
# check if rri is within physiological parameters
248-
if rri.min() < 400 or rri.min() > 1400:
248+
if rri.min() < 400 or rri.max() > 1400:
249249
warnings.warn("RR-intervals appear to be out of normal parameters."
250250
"Check input values.")
251251

0 commit comments

Comments
 (0)