Skip to content

Commit cb8b5b4

Browse files
authored
Fix typo in adc_gain check and error message
1 parent 3bc22f4 commit cb8b5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/io/_signal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ def calc_adc_params(self):
552552
adc_gain = (dmin - baseline) / pmin
553553

554554
# WFDB library limits...
555-
if abs(adc_gain)>214748364 or abs(baseline)>2147483648:
556-
raise Exception('adc_gain and baseline must have magnitudes < 214748364')
555+
if abs(adc_gain)>2147483648 or abs(baseline)>2147483648:
556+
raise Exception('adc_gain and baseline must have magnitudes < 2147483648')
557557

558558
adc_gains.append(adc_gain)
559559
baselines.append(baseline)

0 commit comments

Comments
 (0)