Skip to content
Snippets Groups Projects
Commit 96b09abe authored by Michal Leszczynski's avatar Michal Leszczynski
Browse files

Fix confTool --ignoreIrrelevant option

parent 73be345d
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!38616Fix confTool --ignoreIrrelevant option
......@@ -216,8 +216,18 @@ def _loadSingleFile(fname, args):
]
if args.ignoreIrrelevant:
def remove_irrelevant(val_dict):
return {key:val for key, val in val_dict.items() if key not in args.ignoreList}
return (
{
key: val
for key, val in val_dict.items()
if key not in args.ignoreList
}
if isinstance(val_dict, dict)
else val_dict
)
conf = [
{key: remove_irrelevant(value) for (key, value) in dic.items()}
for dic in conf
......
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