-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Benjamin Moody
committed
Sep 24, 2021
1 parent
89ca194
commit d16dd96
Showing
13 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
binformats 10 200 499 | ||
binformats.d0 8 200/mV 12 0 -2047 -31143 0 sig 0, fmt 8 | ||
binformats.d1 16 200/mV 16 0 -32766 -750 0 sig 1, fmt 16 | ||
binformats.d2 61 200/mV 16 0 -32765 -251 0 sig 2, fmt 61 | ||
binformats.d3 80 200/mV 8 0 -124 -517 0 sig 3, fmt 80 | ||
binformats.d4 160 200/mV 16 0 -32763 747 0 sig 4, fmt 160 | ||
binformats.d5 212 200/mV 12 0 -2042 -6824 0 sig 5, fmt 212 | ||
binformats.d6 310 200/mV 10 0 -505 -1621 0 sig 6, fmt 310 | ||
binformats.d7 311 200/mV 10 0 -504 -2145 0 sig 7, fmt 311 | ||
binformats.d8 24 200/mV 24 0 -8388599 11715 0 sig 8, fmt 24 | ||
binformats.d9 32 200/mV 32 0 -2147483638 19035 0 sig 9, fmt 32 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters