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
Compare and Show latest version
2 files
+ 14
7
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,7 +200,7 @@ 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(
@@ -204,7 +210,8 @@ if __name__ == '__main__':
job_inputs[i] = download_mdf_inputs_locally(
inputs,
args.cache_dirs[i],
max_size=args.avg_evt_size * kB_to_GB * args.events)
max_size=args.avg_evt_size * kB_to_GB * args.events,
allow_digi=args.digi)
logging.info(inputs)
elif any(is_remote(url) for url in inputs_fns):
parser.error('inputs must either be all xrootd or all local')
Loading