Skip to content
Snippets Groups Projects

[RTADPA BW Tests] Introducing an Hlt1-bandwidth test via Moore_in_Allen

Merged Luke Grazette requested to merge lugrazet-BW-initialhlt1test into master
All threads resolved!
@@ -157,22 +157,8 @@ def download_inputs_locally(urls, dest_dir, assertion_endswith, max_size=None):
def download_digi_inputs_locally(urls, dest_dir, max_size=None):
"""Download raw inputs locally partially or fully.
Downloads files identified by `urls`. If specified, download until
`max_size` cumulative size is reached. The last file will be cut
off.
Args:
urls: (xrootd) URLs to download.
dest_dir: Path to destination directory.
max_size (int): Limit of the total downloaded file size.
Returns:
list: Paths of the local files.
Raises:
OSError: If an error occurred while downloading a file.
"""
Calls download_inputs_locally specifically for digi or xdigi files.
"""
assertion_endswith = ['.digi', '.xdigi']
return download_inputs_locally(
@@ -183,23 +169,8 @@ def download_digi_inputs_locally(urls, dest_dir, max_size=None):
def download_mdf_inputs_locally(urls, dest_dir, max_size):
"""Download raw inputs locally partially or fully.
Downloads files identified by `urls`. If specified, download until
`max_size` cumulative size is reached. The last file will be cut
off.
Args:
urls: (xrootd) URLs to download.
dest_dir: Path to destination directory.
max_size (int): Limit of the total downloaded file size.
Returns:
list: Paths of the local files.
Raises:
OSError: If an error occurred while downloading a file.
"""
Calls download_inputs_locally specifically for mdf, mep or raw files.
"""
assertion_endswith = ['.mdf', '.mep', '.raw']
return download_inputs_locally(
Loading