Commit 78a1a86
Benjamin Moody
Merge pull request #372 into main
This adds support for reading FLAC compressed signal files (indicated
by format codes 508, 516, and 524, which were added in libwfdb version
10.7.0.)
Reading FLAC files uses the Python soundfile package, which in turn
requires the libsndfile and libFLAC C libraries to be installed.
soundfile is now included as a dependency of wfdb; you can install it
even if you don't have libsndfile, but trying to 'import soundfile'
will fail in that case. Consequently, wfdb will only try to import
soundfile when you actually try to read a FLAC signal file.
Note that most desktop Linux systems include libsndfile by default,
and the soundfile wheel packages include libsndfile binaries for
x86-64 Windows and Mac OS platforms.File tree
16 files changed
+391
-36
lines changed- .github/workflows
- sample-data
- tests
- target-output
- wfdb/io
16 files changed
+391
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Binary file not shown.
Binary file not shown.
0 commit comments