Skip to content

Commit d69bce7

Browse files
committed
fix wrann error inputting arguments in wrong order, and typo
1 parent 6ae2583 commit d69bce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/readwrite/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def checkfield(self, field):
209209
elif field == 'chan':
210210
# unsigned character
211211
if min(self.chan) < 0 or max(self.chan) >255:
212-
raise ValueErrort("The 'chan' field must only contain non-negative integers up to 255")
212+
raise ValueError("The 'chan' field must only contain non-negative integers up to 255")
213213
elif field == 'num':
214214
# signed character
215215
if min(self.num) < 0 or max(self.num) >127:
@@ -569,7 +569,7 @@ def wrann(recordname, annotator, annsamp, anntype, subtype = None, chan = None,
569569
"""
570570

571571
# Create Annotation object
572-
annotation = Annotation(recordname, annotator, annsamp, anntype, num, subtype, chan, aux, fs)
572+
annotation = Annotation(recordname, annotator, annsamp, anntype, subtype, chan, num, aux, fs)
573573
# Perform field checks and write the annotation file
574574
annotation.wrann(writefs = True)
575575

0 commit comments

Comments
 (0)