sidechainnet/utils/load.py
def _download_sidechainnet(casp_version, thinning, scn_dir):
    """Download the specified version of Sidechainnet."""
    # Prepare destination paths for downloading
    if format_sidechainnet_path(casp_version, thinning) not in BOXURLS:
        raise FileNotFoundError(
            "The requested file is currently unavailable. Please check back later.")
    outfile_path = os.path.join(scn_dir, format_sidechainnet_path(casp_version, thinning))
    os.makedirs(os.path.dirname(outfile_path), exist_ok=True)
    print("Downloading from", BOXURLS[format_sidechainnet_path(casp_version, thinning)])

    # Use a data-agnostic tool for downloading URL data from Box to a specified local file
    _download(BOXURLS[format_sidechainnet_path(casp_version, thinning)], outfile_path)
    print(f"Downloaded SidechainNet to {outfile_path}.")

    return outfile_path
Download the specified version of Sidechainnet.
Download the specified version of Sidechainnet.
Download the specified version of Sidechainnet .
def _download_sidechainnet(casp_version, thinning, scn_dir):
    if format_sidechainnet_path(casp_version, thinning) not in BOXURLS:
        raise FileNotFoundError(
            "The requested file is currently unavailable. Please check back later.")
    outfile_path = os.path.join(scn_dir, format_sidechainnet_path(casp_version, thinning))
    os.makedirs(os.path.dirname(outfile_path), exist_ok=True)
    print("Downloading from", BOXURLS[format_sidechainnet_path(casp_version, thinning)])
    _download(BOXURLS[format_sidechainnet_path(casp_version, thinning)], outfile_path)
    print(f"Downloaded SidechainNet to {outfile_path}.")
    return outfile_path
def _download_sidechainnet ( casp_version , thinning , scn_dir ) : if format_sidechainnet_path ( casp_version , thinning ) not in BOXURLS : raise FileNotFoundError ( "The requested file is currently unavailable. Please check back later." ) outfile_path = os . path . join ( scn_dir , format_sidechainnet_path ( casp_version , thinning ) ) os . makedirs ( os . path . dirname ( outfile_path ) , exist_ok = True ) print ( "Downloading from" , BOXURLS [ format_sidechainnet_path ( casp_version , thinning ) ] ) _download ( BOXURLS [ format_sidechainnet_path ( casp_version , thinning ) ] , outfile_path ) print ( f"Downloaded SidechainNet to {outfile_path}." ) return outfile_path
Download the specified version of Sidechainnet.
Download the specified version of Sidechainnet .
"""Download the specified version of Sidechainnet.""" # Prepare destination paths for downloading # Use a data-agnostic tool for downloading URL data from Box to a specified local file
casp_version
thinning
scn_dir