Esempio n. 1
0
 def test_sig1_last20s_noatr_num_annotations(self):
     for from_time in ["0:40", "0:0:40", "00:00:40", "s14400"]:
         res = ecgpuwave_wrapper(
             self.test_rec, TEST_ANN_EXT, channel=1, from_time=from_time
         )
         assert res
         self._helper_check_num_annotations(209)
Esempio n. 2
0
 def test_invalid_record_should_fail(self):
     with pytest.raises(ValueError):
         res = ecgpuwave_wrapper(f"{RESOURCES_PATH}/foo", "bar")
Esempio n. 3
0
 def test_sig0_full_withatr_num_annotations(self):
     res = ecgpuwave_wrapper(
         self.test_rec, TEST_ANN_EXT, in_ann_ext=self.test_rec_ann_ext
     )
     assert res
     self._helper_check_num_annotations(670)
Esempio n. 4
0
 def test_sig0_first30s_noatr_num_annotations(self):
     for to_time in ["0:30", "0:0:30", "00:00:30", "s10800"]:
         res = ecgpuwave_wrapper(self.test_rec, TEST_ANN_EXT, to_time=to_time)
         assert res
         self._helper_check_num_annotations(349)
Esempio n. 5
0
 def test_sig1_full_noatr_num_annotations(self):
     res = ecgpuwave_wrapper(self.test_rec, TEST_ANN_EXT, channel=1)
     assert res
     self._helper_check_num_annotations(655)
Esempio n. 6
0
 def test_sig0_full_noatr_num_annotations(self):
     for signal_idx in [0, None]:
         res = ecgpuwave_wrapper(self.test_rec, TEST_ANN_EXT, channel=signal_idx)
         assert res
         self._helper_check_num_annotations(684)