Skip to content

Commit

Permalink
Skip missing processes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Nov 22, 2024
1 parent d45ae7a commit fffd6ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analysis/topeft_run2/make_cr_and_sr_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,9 @@ def make_all_sr_plots(dict_of_hists,year,unit_norm_bool,save_dir_path,split_by_c
# Integrate
hist_sig_grouped_tmp = copy.deepcopy(hist_sig_grouped)
hist_sig_grouped_tmp = yt.integrate_out_appl(hist_sig_grouped_tmp,grouped_hist_cat)
if proc_name not in list(hist_sig_grouped_tmp.axes["process"]):
print(f"Warning: mc histo missing {proc_name}, continuing")
continue
hist_sig_grouped_tmp = hist_sig_grouped_tmp.integrate("process",proc_name)
if not hist_sig_grouped_tmp.eval({}):
print("Warning: empty mc histo, continuing")
Expand Down

0 comments on commit fffd6ad

Please sign in to comment.