Skip to content

Commit 85929d2

Browse files
committed
ceil available in np
1 parent 5f38498 commit 85929d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wfdb/_rdsamp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22
import re
33
import os
4-
import math
54
import sys
65
import configparser
76
import requests
@@ -556,7 +555,7 @@ def processwfdbbytes(fp, fmt, siglen, nsig, sampsperframe, floorsamp=0):
556555
if fmt == '212':
557556
# The number of bytes needed to be loaded given the number of samples
558557
# needed
559-
nbytesload = int(math.ceil((nsamp) * 1.5))
558+
nbytesload = int(np.ceil((nsamp) * 1.5))
560559
sigbytes = np.fromfile(
561560
fp,
562561
dtype=np.dtype(

0 commit comments

Comments
 (0)