Skip to content
Snippets Groups Projects

[RTADPA BW Tests] New Sprucing bandwidth test using latest-available HLT2 input.

Merged Luke Grazette requested to merge lugrazet-BW-spruce-ydayshlt2 into master
2 files
+ 13
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -78,6 +78,9 @@ def run_gaudi_job(args, config, job_input):
if args.download_input_files:
extra_options += ["event_store = 'EvtStoreSvc'", "use_iosvc = True"]
if args.use_manifest:
extra_options += [f"input_manifest_file = {config['input_manifest_file']}"]
extra_options = [f"options.{opt_str}" for opt_str in extra_options]
extra_options.insert(0, "from Moore import options")
@@ -142,6 +145,12 @@ if __name__ == '__main__':
help='Comma separated paths to directories, one per job, where the '
'input files will be cached (default is hostname dependent or '
'$XDG_RUNTIME_DIR).')
parser.add_argument(
'-um',
'--use-manifest',
action='store_true',
help="Flag to access and include config[input_manifest_file] as an extra option in the job.
)
args = parser.parse_args()
logging.basicConfig(
@@ -158,6 +167,9 @@ if __name__ == '__main__':
config = parse_yaml(args.config)
if args.use_manifest and not "input_manifest_file" in config.keys():
raise KeyError(f'{args.config} does not provide "input_manifest_file" but --use-manifest is in use.')
if "testfiledb_key" in config.keys():
from PRConfig.TestFileDB import test_file_db
inputs_fns = test_file_db[config['testfiledb_key']].filenames
Loading