Skip to content

Commit 5375b97

Browse files
author
Benjamin Moody
committed
_auto_signal_file_names: fix counting channels per group.
Since the FLAC format has a hard limit of eight channels, we need to use multiple signal files if a record contains more than eight signals. Commit d1d26ba was meant to do this automatically (when Record.set_default or wfdb.wrsamp is used to generate the signal file names), but this was never tested.
1 parent e583e0e commit 5375b97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wfdb/io/_header.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def _auto_signal_file_names(self):
384384
num_groups += 1
385385
channels_in_group = 0
386386
group_number.append(num_groups)
387+
channels_in_group += 1
387388
prev_fmt = ch_fmt
388389
prev_spf = ch_spf
389390

0 commit comments

Comments
 (0)