Skip to content
Snippets Groups Projects

Changes to BW test options files to go with PRConfig!349

Merged Ross John Hunter requested to merge rjhunter-trim-fat-from-BW-tests into master
All threads resolved!
5 files
+ 85
283
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -17,14 +17,14 @@ from RecoConf.hlt2_global_reco import make_fastest_reconstruction
from Hlt2Conf.settings.hlt2_pp_commissioning import _make_streams
import re
import json
from PRConfig.bandwidth_helpers import FileNameHelper
import os
if not os.path.exists('tmp/MDF'): os.system('mkdir -p tmp/MDF')
if not os.path.exists('tmp/Output'): os.system('mkdir -p tmp/Output')
options.output_file = 'tmp/MDF/baseline-production-{stream}.mdf'
fname_helper = FileNameHelper(process="hlt2")
fname_helper.make_tmp_dirs()
options.output_file = fname_helper.mdf_fname_for_Moore(
stream_config="production")
options.output_type = 'MDF'
options.output_manifest_file = 'tmp/MDF/baseline-production-streams.tck.json'
options.output_manifest_file = fname_helper.tck(stream_config="production")
to_remove = [
'Hlt2Lumi',
@@ -86,7 +86,9 @@ def make_module_streams():
linedict.update({stream: filtered}) # Modify dictionary
# Write out stream configuration to JSON file for use later in the test
with open('tmp/Output/hlt2-production-stream-config.json', 'w') as f:
with open(
fname_helper.stream_config_json_path(stream_config="production"),
'w') as f:
json.dump({k: [line.name for line in v]
for k, v in linedict.items()}, f)
Loading