ATLAS Offline Software
Loading...
Searching...
No Matches
validateBDTTau.py File Reference

Go to the source code of this file.

Namespaces

namespace  validateBDTTau

Functions

 validateBDTTau.get_vector (lines, startswith)

Variables

 validateBDTTau.test_status = int(os.environ["ATLAS_CTEST_TESTSTATUS"])
str validateBDTTau.test_output_file = os.environ["ATLAS_CTEST_TESTNAME"]+".log"
 validateBDTTau.bdt_config_file = os.environ["TAU_EFEX_BDT_CONFIG_PATH"]
 validateBDTTau.out_log_content = open(test_output_file, "r").read()
list validateBDTTau.bdt_algo_lines = [l for l in out_log_content.split('\n') if re.findall(r"eFEXDriver\..+eFEXtauBDTAlgo", l)]
 validateBDTTau.rgx_vartitle = re.compile(r"DEBUG\s+([0-9]+) is (l[0-4]_d[0-9_pld]*), sum of supercells$")
 validateBDTTau.rgx_coretitle = re.compile(r"DEBUG\s+([0-9]+) is CORE, sum of supercells$")
 validateBDTTau.rgx_etaphilayer = re.compile(r"DEBUG\s+eta=([0-9]+)\s+phi=([0-9]+)\s+layer=([0-9]+)$")
 validateBDTTau.variables = OrderedDict()
list validateBDTTau.last_var_line = [i for i,x in enumerate(bdt_algo_lines) if "Will use sum of supercells" in x][0]
 validateBDTTau.vartitle = rgx_vartitle.findall(l)
 validateBDTTau.coretitle = rgx_coretitle.findall(l)
 validateBDTTau.etaphilayer = rgx_etaphilayer.findall(l)
 validateBDTTau.vt = vartitle[0][1]
 validateBDTTau.bdt_config = json.load(open(bdt_config_file, "r"))
 validateBDTTau.bdt_scores = get_vector(bdt_algo_lines, 'DEBUG BDT Score: ').reshape(-1)