Skip to content

Commit

Permalink
Fix do_syst_ml condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera committed Feb 20, 2025
1 parent 11d4ece commit f8e2772
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions machine_learning_hep/steer_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ def mlhepmod(name):

analyzers = ana_mgr.get_analyzers()
# For ML WP systematics
if mltype == "MultiClassification":
syst_ml_pt_cl0 = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata, 0)
syst_ml_pt_cl1 = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata, 1)
else:
syst_ml_pt = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata)
if do_syst_ml:
if mltype == "MultiClassification":
syst_ml_pt_cl0 = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata, 0)
syst_ml_pt_cl1 = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata, 1)
else:
syst_ml_pt = syst_class(data_param[case], case, typean, analyzers,
mymultiprocessmc, mymultiprocessdata)

#perform the analysis flow
if dodownloadalice:
Expand Down

0 comments on commit f8e2772

Please sign in to comment.