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
2 files
+ 12
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -136,6 +136,12 @@ 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=
"Specifics input files as digi instead of mdf as the default"
)
parser.add_argument(
'--cache-dirs',
default=None,
@@ -194,14 +200,15 @@ 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
from Moore.qmtest.context import download_mdf_inputs_locally, download_digi_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
job_inputs[i] = download_mdf_inputs_locally(
download_locally = download_digi_inputs_locally if args.digi else download_mdf_inputs_locally
job_inputs[i] = download_locally(
inputs,
args.cache_dirs[i],
max_size=args.avg_evt_size * kB_to_GB * args.events)
Loading