Skip to content

Commit 9c9fffe

Browse files
committed
use unit8 for reading fsspec object size
1 parent e180259 commit 9c9fffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ def fromfile(fileobj, dtype, count=-1):
145145
fileobj.seek(start, os.SEEK_SET)
146146
count = (end - start) // dtype.itemsize
147147
array = np.empty(count, dtype)
148-
size = fileobj.readinto(array)
148+
size = fileobj.readinto(array.view(np.uint8))
149149
array.resize(size // dtype.itemsize)
150150
return array

0 commit comments

Comments
 (0)