Skip to content

Commit 5e58260

Browse files
committed
move cloud_protocols definition
1 parent a13c1e2 commit 5e58260

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

wfdb/io/download.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import posixpath
55

6-
import fsspec
76
import numpy as np
87

98
from wfdb.io import _url
@@ -13,9 +12,6 @@
1312
PN_INDEX_URL = "https://physionet.org/files/"
1413
PN_CONTENT_URL = "https://physionet.org/content/"
1514

16-
# Cloud protocols
17-
CLOUD_PROTOCOLS = ["az:", "azureml:", "s3:", "gs:"]
18-
1915

2016
class Config(object):
2117
"""

wfdb/io/record.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@
156156
"vtip": "mV",
157157
}
158158

159+
# Cloud protocols
160+
CLOUD_PROTOCOLS = ["az:", "azureml:", "s3:", "gs:"]
159161

160162
class BaseRecord(object):
161163
"""
@@ -1829,7 +1831,7 @@ def rdheader(record_name, pn_dir=None, rd_segments=False):
18291831

18301832
# If this is a cloud path we leave it as is
18311833
if (pn_dir is not None) and any(
1832-
pn_dir.startswith(proto) for proto in download.CLOUD_PROTOCOLS
1834+
pn_dir.startswith(proto) for proto in CLOUD_PROTOCOLS
18331835
):
18341836
pass
18351837
# If it isn't a cloud path, construct the download path using the database version

0 commit comments

Comments
 (0)