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.
2 parents a3fc4a0 + bb6f893 commit dc61e8eCopy full SHA for dc61e8e
wfdb/io/annotation.py
@@ -475,8 +475,8 @@ def check_field(self, field):
475
# The C WFDB library stores num/sub/chan as chars.
476
elif field == 'subtype':
477
# signed character
478
- if min(self.subtype) < 0 or max(self.subtype) >127:
479
- 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")
480
elif field == 'chan':
481
# un_signed character
482
if min(self.chan) < 0 or max(self.chan) >255:
0 commit comments