Skip to content

Commit ec8f0c6

Browse files
committed
revise cloud protocol list imports
1 parent 87cda05 commit ec8f0c6

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

wfdb/io/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
wfdbdesc,
1212
wfdbtime,
1313
SIGNAL_CLASSES,
14-
CLOUD_PROTOCOLS,
1514
)
1615
from wfdb.io._signal import est_res, wr_dat_file
1716
from wfdb.io.annotation import (

wfdb/io/_coreio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
from wfdb.io import _url
66
from wfdb.io.download import config
77

8+
9+
# Cloud protocols
10+
CLOUD_PROTOCOLS = ["az://", "azureml://", "s3://", "gs://"]
11+
812
def _open_file(
913
pn_dir,
1014
file_name,

wfdb/io/_signal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import numpy as np
88

99
from wfdb.io import download, _coreio, util
10+
from wfdb.io._coreio import CLOUD_PROTOCOLS
1011

1112
MAX_I32 = 2147483647
1213
MIN_I32 = -2147483648

wfdb/io/annotation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from wfdb.io import _header
1212
from wfdb.io import record
1313
from wfdb.io import util
14+
from wfdb.io._coreio import CLOUD_PROTOCOLS
1415

1516
class Annotation(object):
1617
"""

wfdb/io/record.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from wfdb.io import download
1515
from wfdb.io import header
1616
from wfdb.io import util
17+
from wfdb.io._coreio import CLOUD_PROTOCOLS
1718

1819

1920
# -------------- WFDB Signal Calibration and Classification ---------- #
@@ -156,10 +157,6 @@
156157
"vtip": "mV",
157158
}
158159

159-
# Cloud protocols
160-
CLOUD_PROTOCOLS = ["az://", "azureml://", "s3://", "gs://"]
161-
162-
163160
class BaseRecord(object):
164161
"""
165162
The base WFDB class extended by the Record and MultiRecord classes.

0 commit comments

Comments
 (0)