Skip to content

compute_rri is checking that the minimum rri is within range for both lower and upper bounds #68

@DMRoberts

Description

@DMRoberts

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.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions