Skip to content

Commit 14048dd

Browse files
author
Benjamin Moody
committed
Add a test case for all WFDB binary signal formats.
The record "binformats" contains one signal in each of the ten WFDB binary formats (8, 16, 61, 80, 160, 212, 310, 311, 24, and 32.) In this record, sample j of signal i is equal to: (i + 16843019 * j) % ((1 << adcres) - 1) + 1 - (1 << (adcres - 1))) Note that the length of the record is 499 samples, so each of the bit-packed data files ends with an incomplete data block. Use this record to test that it is possible to read all of the formats correctly, including when we skip one or two samples from the start and/or end of the record. (Skipping samples is expected to give incorrect results for format 8, so that signal is not required to match.) We do not test writing, since not all formats are currently supported by wr_dat_file.
1 parent 8b3d307 commit 14048dd

File tree

13 files changed

+43
-0
lines changed

13 files changed

+43
-0
lines changed

sample-data/binformats.d0

499 Bytes
Binary file not shown.

sample-data/binformats.d1

998 Bytes
Binary file not shown.

sample-data/binformats.d2

998 Bytes
Binary file not shown.

sample-data/binformats.d3

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
 .<JXft���������+9GUcq��������� (6DR`n|��������� %3AO]ky���������"0>LZhv���������-;IWes����������*8FTbp~��������� '5CQ_m{���������$2@N\jx���������!/=KYgu���������,:HVdr����������)7ESao}���������
2+
&4BP^lz���������#1?M[iw��������� .<JXft���������+9GUcq��������� (6DR`n|��������� %3AO]ky���������"0>LZhv���������-;IWes����������*8FTbp~��������� '5CQ_m{���������$2@N\jx���������!/=KYgu���������,:HVdr����������)7ESao}���������
3+
&4BP^lz���������#1?M[

sample-data/binformats.d4

998 Bytes
Binary file not shown.

sample-data/binformats.d5

749 Bytes
Binary file not shown.

sample-data/binformats.d6

666 Bytes
Binary file not shown.

sample-data/binformats.d7

666 Bytes
Binary file not shown.

sample-data/binformats.d8

1.46 KB
Binary file not shown.

sample-data/binformats.d9

1.95 KB
Binary file not shown.

0 commit comments

Comments
 (0)