We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2baf41a commit e5fff63Copy full SHA for e5fff63
1 file changed
wfdb/io/util.py
@@ -145,6 +145,6 @@ def fromfile(fileobj, dtype, count=-1):
145
fileobj.seek(start, os.SEEK_SET)
146
count = (end - start) // dtype.itemsize
147
array = np.empty(count, dtype)
148
- size = fileobj.readinto(array)
+ size = fileobj.readinto(array.view(np.uint8))
149
array.resize(size // dtype.itemsize)
150
return array
0 commit comments