We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7889664 commit bb6f893Copy full SHA for bb6f893
wfdb/io/annotation.py
@@ -474,8 +474,8 @@ def check_field(self, field):
474
# The C WFDB library stores num/sub/chan as chars.
475
elif field == 'subtype':
476
# signed character
477
- if min(self.subtype) < 0 or max(self.subtype) >127:
478
- raise ValueError("The 'subtype' field must only contain non-negative integers up to 127")
+ if min(self.subtype) < -128 or max(self.subtype) > 127:
+ raise ValueError("The 'subtype' field must only contain integers from -128 to 127")
479
elif field == 'chan':
480
# un_signed character
481
if min(self.chan) < 0 or max(self.chan) >255:
0 commit comments