Skip to content

ZeroDivisionError in evaluate.py #278

Open
@pranavchat14

Description

@pranavchat14

This is the error I get when trying to run xqrs detection algorithm from Google Colab as well locally.
I have used demo.ipynb from the repo itself.

/usr/local/lib/python3.6/dist-packages/wfdb/processing/evaluate.py in _calc_stats(self)
118 # No tn attribute
119
--> 120 self.sensitivity = float(self.tp) / float(self.tp + self.fn)
121 self.positive_predictivity = float(self.tp) / self.n_test
122

ZeroDivisionError: float division by zero

The error seems very weird in the sense that even when I comment the particular line, the error still shows in the same line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions