Within the HRV module, compute_rri warns the user if their r-r intervals are out of range. It is currently checking to see if the minimum rri is below 400, or above 1400. I think the latter is likely intended to instead be comparing to the maximum (not minimum) rri, to check if all rri values are within the range of 400 and 1400.
|
# check if rri is within physiological parameters |
|
if rri.min() < 400 or rri.min() > 1400: |
|
warnings.warn("RR-intervals appear to be out of normal parameters." |
|
"Check input values.") |