File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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' :
Original file line number Diff line number Diff line change 1313class 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
2929class 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
You can’t perform that action at this time.
0 commit comments