Skip to content

Commit 5775654

Browse files
author
Benjamin Moody
committed
Record, MultiRecord: use keyword arguments to super().__init__.
BaseRecord.__init__ takes a large number of arguments and the order is not especially meaningful or memorable; use keyword arguments instead of positional arguments for clarity.
1 parent c199713 commit 5775654

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

wfdb/io/record.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -682,16 +682,16 @@ def __init__(
682682
# have this field. Even n_seg = 1 makes the header a multi-segment
683683
# header.
684684
super(Record, self).__init__(
685-
record_name,
686-
n_sig,
687-
fs,
688-
counter_freq,
689-
base_counter,
690-
sig_len,
691-
base_time,
692-
base_date,
693-
comments,
694-
sig_name,
685+
record_name=record_name,
686+
n_sig=n_sig,
687+
fs=fs,
688+
counter_freq=counter_freq,
689+
base_counter=base_counter,
690+
sig_len=sig_len,
691+
base_time=base_time,
692+
base_date=base_date,
693+
comments=comments,
694+
sig_name=sig_name,
695695
)
696696

697697
self.p_signal = p_signal
@@ -951,16 +951,16 @@ def __init__(
951951
):
952952

953953
super(MultiRecord, self).__init__(
954-
record_name,
955-
n_sig,
956-
fs,
957-
counter_freq,
958-
base_counter,
959-
sig_len,
960-
base_time,
961-
base_date,
962-
comments,
963-
sig_name,
954+
record_name=record_name,
955+
n_sig=n_sig,
956+
fs=fs,
957+
counter_freq=counter_freq,
958+
base_counter=base_counter,
959+
sig_len=sig_len,
960+
base_time=base_time,
961+
base_date=base_date,
962+
comments=comments,
963+
sig_name=sig_name,
964964
)
965965

966966
self.layout = layout

0 commit comments

Comments
 (0)