Skip to content

Commit bde2143

Browse files
committed
use correct read mode
1 parent 08efe22 commit bde2143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ def rdheader(record_name, pn_dir=None, rd_segments=False):
18321832

18331833
# If this is a cloud path, use posixpath to construct the path
18341834
if any(dir_name.startswith(proto) for proto in CLOUD_PROTOCOLS):
1835-
with fsspec.open(posixpath.join(dir_name, file_name), mode="rb") as f:
1835+
with fsspec.open(posixpath.join(dir_name, file_name), mode="r") as f:
18361836
header_content = f.read()
18371837

18381838
# If it isn't a cloud path, construct the download path using the database version

0 commit comments

Comments
 (0)