File tree Expand file tree Collapse file tree
sub-packages/bionemo-scdl/src/bionemo/scdl/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,19 +226,16 @@ def _parse_resource_file(file) -> list[dict[str, Any]]:
226226DEFAULT_SOURCE : SourceOptions = _ENV_SOURCE if _ENV_SOURCE in {"ngc" , "pbss" } else "ngc"
227227
228228
229- def default_pbss_client ():
230- """Create a default S3 client for PBSS."""
231- try :
232- import boto3
233- from botocore .config import Config
234- except ImportError :
235- raise ImportError ("boto3 and botocore are required to download from PBSS." )
236-
237- from botocore .config import Config # defer optional dependency
238-
239- retry_config = Config (retries = {"max_attempts" : 10 , "mode" : "standard" })
240- return boto3 .client ("s3" , endpoint_url = "https://pbss.s8k.io" , config = retry_config )
241-
229+ def default_pbss_client ():
230+ """Create a default S3 client for PBSS."""
231+ try :
232+ import boto3
233+ from botocore .config import Config
234+ except ImportError :
235+ raise ImportError ("boto3 and botocore are required to download from PBSS." )
236+
237+ retry_config = Config (retries = {"max_attempts" : 10 , "mode" : "standard" })
238+ return boto3 .client ("s3" , endpoint_url = "https://pbss.s8k.io" , config = retry_config )
242239
243240def _s3_download (url : str , output_file : str | Path , _ : pooch .Pooch ) -> None :
244241 """Download a file from PBSS."""
You can’t perform that action at this time.
0 commit comments