Skip to content
Snippets Groups Projects
Commit 0161a5e8 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'map.JetTagTools-20170619' into 'master'

JetTagTools: Fix test for non-existent map entry.

See merge request !2785
parents cc119f9a 4a270912
No related merge requests found
...@@ -257,7 +257,7 @@ namespace Analysis { ...@@ -257,7 +257,7 @@ namespace Analysis {
var_map cleaned_inputs = replace_nan_with_defaults(complete_inputs, m_map_defaults.at(jetauthor)); var_map cleaned_inputs = replace_nan_with_defaults(complete_inputs, m_map_defaults.at(jetauthor));
for (const auto& var: m_map_variables.at(jetauthor)) { for (const auto& var: m_map_variables.at(jetauthor)) {
if (std::isnan(cleaned_inputs.at(var.name)) && cleaned_inputs.count(var.name)) { if (cleaned_inputs.count(var.name) && std::isnan(cleaned_inputs.at(var.name))) {
ATH_MSG_WARNING( "#BTAG# 'nan' input for variable " + var.name + " --> will result in 'nan' classification output. Check NN configuration file for default settings."); ATH_MSG_WARNING( "#BTAG# 'nan' input for variable " + var.name + " --> will result in 'nan' classification output. Check NN configuration file for default settings.");
} }
} }
......
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