Skip to content
Snippets Groups Projects
Commit 6fdfb4e3 authored by Luke Grazette's avatar Luke Grazette
Browse files

revert download_digi changes now unneeded:

finish removing digi changes
parent bc29ad83
No related branches found
No related tags found
1 merge request!330[RTADPA BW Tests] Introducing an Hlt1-bandwidth test via Moore_in_Allen
Pipeline #6397615 passed
......@@ -136,10 +136,6 @@ if __name__ == '__main__':
help=
"Download files to local disk before running Moore. Achieves big speedup (5x) in Moore, but only worth it if the downloading is fast (probably only true if you're at CERN.)"
)
parser.add_argument(
'--digi',
action='store_true',
help="Specifies input files as digi instead of mdf as the default")
parser.add_argument(
'--cache-dirs',
default=None,
......@@ -198,15 +194,14 @@ if __name__ == '__main__':
f'Downloading input files {inputs[:MAX_NFILES_TO_PRINT_TO_LOG]}'
)
if all(is_remote(url) for url in inputs):
from Moore.qmtest.context import download_mdf_inputs_locally, download_digi_inputs_locally
from Moore.qmtest.context import download_mdf_inputs_locally
# download_mdf_inputs_locally only downloads if files
# are not already available locally on the machine
logging.info(
'Downloading inputs for bandwidth job to {}'.format(
args.cache_dirs[i]))
kB_to_GB = 1e3
download_locally = download_digi_inputs_locally if args.digi else download_mdf_inputs_locally
job_inputs[i] = download_locally(
job_inputs[i] = download_mdf_inputs_locally(
inputs,
args.cache_dirs[i],
max_size=args.avg_evt_size * kB_to_GB * args.events)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment