Exemplo n.º 1
0
 def test_with_ann_from_to_time(self):
     t, rr = rri.ecgrr(self.resources / "100",
                       ann_ext="atr",
                       from_time="02:15",
                       to_time="10:30")
     assert np.all((2.25 * 60 <= t) * (t <= 10.5 * 60))
     self.sanity_checks(t, rr)
Exemplo n.º 2
0
 def test_without_ann_to_time(self):
     t, rr = rri.ecgrr(self.resources / "100", to_time="13:15")
     assert np.all(t <= 13.25 * 60)
     self.sanity_checks(t, rr)
Exemplo n.º 3
0
 def test_with_ann_to_time(self):
     t, rr = rri.ecgrr(self.resources / "100",
                       ann_ext="atr",
                       to_time="10:30")
     assert np.all(t <= 10.5 * 60)
     self.sanity_checks(t, rr)
Exemplo n.º 4
0
 def test_without_ann_from_time(self):
     t, rr = rri.ecgrr(self.resources / "100", from_time="05:45")
     assert np.all(t >= 5.75 * 60)
     self.sanity_checks(t, rr)
Exemplo n.º 5
0
 def test_with_ann_from_time(self):
     t, rr = rri.ecgrr(self.resources / "100",
                       ann_ext="atr",
                       from_time="01:30")
     assert np.all(t >= 1.5 * 60)
     self.sanity_checks(t, rr)
Exemplo n.º 6
0
 def test_without_ann(self):
     t, rr = rri.ecgrr(self.resources / "100")
     self.sanity_checks(t, rr)
Exemplo n.º 7
0
 def test_with_ann(self):
     t, rr = rri.ecgrr(self.resources / "100", ann_ext="atr")
     self.sanity_checks(t, rr)