Skip to content

Commit 239ad72

Browse files
authored
Plotting: Add protection for missing systematics (alisw#977)
1 parent c1f4d1b commit 239ad72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_learning_hep/plotting/plot_jetsubstructure_run3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,8 @@ def plot(self):
12301230
1.0,
12311231
)
12321232
setup_legend(leg)
1233-
leg.AddEntry(list_syst_all[-1], " ", "FP")
1233+
if list_syst_all:
1234+
leg.AddEntry(list_syst_all[-1], " ", "FP")
12341235
can.cd(2)
12351236
leg.Draw()
12361237
gStyle.SetErrorX(0.5) # reset default width

0 commit comments

Comments
 (0)