Skip to content

Commit 14b3c32

Browse files
committed
rename: http_root -> s3_root
1 parent 7c805f1 commit 14b3c32

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

templateflow/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def _s3_get(config: CacheConfig, filepath: Path):
339339
from tqdm import tqdm
340340

341341
path = quote(filepath.relative_to(config.root).as_posix())
342-
url = f'{config.http_root}/{path}'
342+
url = f'{config.s3_root}/{path}'
343343

344344
print(f'Downloading {url}', file=stderr)
345345
# Streaming, so we can iterate over the response.

templateflow/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __getattr__(name: str):
1919
elif name == 'TF_GITHUB_SOURCE':
2020
return _cache.config.origin
2121
elif name == 'TF_S3_ROOT':
22-
return _cache.config.http_root
22+
return _cache.config.s3_root
2323
elif name == 'TF_USE_DATALAD':
2424
return _cache.config.use_datalad
2525
elif name == 'TF_AUTOUPDATE':

templateflow/conf/cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class CacheConfig:
1414
root: Path = field(default_factory=get_templateflow_home)
1515
origin: str = field(default='https://github.com/templateflow/templateflow.git')
16-
http_root: str = field(default='https://templateflow.s3.amazonaws.com')
16+
s3_root: str = field(default='https://templateflow.s3.amazonaws.com')
1717
use_datalad: bool = field(default_factory=env_to_bool('TEMPLATEFLOW_USE_DATALAD', False))
1818
autoupdate: bool = field(default_factory=env_to_bool('TEMPLATEFLOW_AUTOUPDATE', True))
1919
timeout: int = field(default=10)
@@ -27,7 +27,7 @@ def __post_init__(self):
2727

2828
@dataclass
2929
class S3Manager:
30-
http_root: str
30+
s3_root: str
3131

3232
def install(self, path: Path, overwrite: bool, timeout: int):
3333
from ._s3 import update
@@ -88,7 +88,7 @@ def __post_init__(self):
8888
self.manager = (
8989
DataladManager(self.config.origin)
9090
if self.config.use_datalad
91-
else S3Manager(self.config.http_root)
91+
else S3Manager(self.config.s3_root)
9292
)
9393
# cache.cached checks live, precached stores state at init
9494
self.precached = self.cached

0 commit comments

Comments
 (0)