Skip to content

Commit 99b46ac

Browse files
committed
bugfix 'too many values to unpack'
1 parent 041e04d commit 99b46ac

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎PWGHF/D2H/Macros/compute_fraction_cutvar.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def main(config):
300300
if is_save_to_root_file[ObjectToSave.Canvas]:
301301
canv_rawy.Write()
302302
if is_save_to_root_file[ObjectToSave.RawYield]:
303-
for _, hist in histos_rawy.values():
303+
for hist in histos_rawy.values():
304304
hist.Write()
305305
if is_save_canvas_as_macro[PlotType.Rawy]:
306306
canv_rawy.SaveAs(f"canv_rawy_{ipt+1}.C")
@@ -311,7 +311,7 @@ def main(config):
311311
if is_save_to_root_file[ObjectToSave.Canvas]:
312312
canv_unc.Write()
313313
if is_save_to_root_file[ObjectToSave.Uncertainty]:
314-
for _, hist in histos_unc.values():
314+
for hist in histos_unc.values():
315315
hist.Write()
316316
if is_save_canvas_as_macro[PlotType.Unc]:
317317
canv_unc.SaveAs(f"canv_unc_{ipt+1}.C")
@@ -322,7 +322,7 @@ def main(config):
322322
if is_save_to_root_file[ObjectToSave.Canvas]:
323323
canv_rel_unc.Write()
324324
if is_save_to_root_file[ObjectToSave.Uncertainty]:
325-
for _, hist in histos_rel_unc.values():
325+
for hist in histos_rel_unc.values():
326326
hist.Write()
327327
if is_save_canvas_as_macro[PlotType.RelUnc]:
328328
canv_rel_unc.SaveAs(f"canv_rel_unc_{ipt+1}.C")
@@ -333,7 +333,7 @@ def main(config):
333333
if is_save_to_root_file[ObjectToSave.Canvas]:
334334
canv_eff.Write()
335335
if is_save_to_root_file[ObjectToSave.Efficiency]:
336-
for _, hist in histos_eff.values():
336+
for hist in histos_eff.values():
337337
hist.Write()
338338
if is_save_canvas_as_macro[PlotType.Eff]:
339339
canv_eff.SaveAs(f"canv_eff_{ipt+1}.C")
@@ -344,7 +344,7 @@ def main(config):
344344
if is_save_to_root_file[ObjectToSave.Canvas]:
345345
canv_frac.Write()
346346
if is_save_to_root_file[ObjectToSave.Fraction]:
347-
for _, hist in histos_frac.values():
347+
for hist in histos_frac.values():
348348
hist.Write()
349349
if is_save_canvas_as_macro[PlotType.Frac]:
350350
canv_frac.SaveAs(f"canv_frac_{ipt+1}.C")

0 commit comments

Comments
 (0)