We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4cfec commit 9a0d086Copy full SHA for 9a0d086
tests/test_record.py
@@ -633,6 +633,22 @@ def test_4d(self):
633
634
assert np.array_equal(sig_round, sig_target)
635
636
+ def test_write_smoothed(self):
637
+ """
638
+ Test writing a record after reading with smooth_frames
639
640
+ record = wfdb.rdrecord(
641
+ "sample-data/drive02",
642
+ physical=False,
643
+ smooth_frames=True,
644
+ )
645
+ record.wrsamp(write_dir=self.temp_path)
646
+ record2 = wfdb.rdrecord(
647
+ os.path.join(self.temp_path, "drive02"),
648
649
650
+ np.testing.assert_array_equal(record.d_signal, record2.d_signal)
651
+
652
def test_to_dataframe(self):
653
record = wfdb.rdrecord("sample-data/test01_00s")
654
df = record.to_dataframe()
0 commit comments