Skip to content

Commit 89cfe76

Browse files
author
Benjamin Moody
committed
Avoid keyword arguments to Record.check_field.
Since commit 21764cf, the optional parameter to wfdb.io.record.BaseRecord.check_field is called "required_channels", not "channels". The semantics appear equivalent. Several callers were still referring to the old name "channels", while most callers simply use positional arguments. Change all callers to use positional arguments for consistency.
1 parent 3b408f2 commit 89cfe76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wfdb/io/_signal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def set_p_features(self, do_dac=False, expanded=False):
295295
self.e_p_signal = self.dac(expanded)
296296

297297
# Use e_p_signal to set fields
298-
self.check_field("e_p_signal", channels="all")
298+
self.check_field("e_p_signal", "all")
299299
self.sig_len = int(
300300
len(self.e_p_signal[0]) / self.samps_per_frame[0]
301301
)
@@ -361,7 +361,7 @@ def set_d_features(self, do_adc=False, single_fmt=True, expanded=False):
361361
if expanded:
362362
# adc is performed.
363363
if do_adc:
364-
self.check_field("e_p_signal", channels="all")
364+
self.check_field("e_p_signal", "all")
365365

366366
# If there is no fmt set it, adc_gain, and baseline
367367
if self.fmt is None:
@@ -393,7 +393,7 @@ def set_d_features(self, do_adc=False, single_fmt=True, expanded=False):
393393
self.d_signal = self.adc(expanded)
394394

395395
# Use e_d_signal to set fields
396-
self.check_field("e_d_signal", channels="all")
396+
self.check_field("e_d_signal", "all")
397397
self.sig_len = int(
398398
len(self.e_d_signal[0]) / self.samps_per_frame[0]
399399
)

0 commit comments

Comments
 (0)