Skip to content

Commit 356d18d

Browse files
committed
remove hist_util duplicate
1 parent e5c0635 commit 356d18d

File tree

2 files changed

+4
-103
lines changed

2 files changed

+4
-103
lines changed

hbw/hist_util.py

-99
This file was deleted.

hbw/selection/hists.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from columnflow.util import maybe_import
1616
from hbw.util import has_tag, IF_MC
17-
from hbw.hist_util import create_columnflow_hist
17+
from columnflow.hist_util import create_hist_from_variables
1818

1919
np = maybe_import("numpy")
2020
ak = maybe_import("awkward")
@@ -85,10 +85,10 @@ def hbw_selection_hists(
8585
if getattr(self, "first_chunk", True):
8686
for key, weight in weight_map.items():
8787
if "btag_weight" not in key:
88-
hists[key] = create_columnflow_hist(self.steps_variable)
89-
hists[f"{key}_per_process"] = create_columnflow_hist(self.steps_variable, self.process_variable)
88+
hists[key] = create_hist_from_variables(self.steps_variable)
89+
hists[f"{key}_per_process"] = create_hist_from_variables(self.steps_variable, self.process_variable)
9090
if key == "sum_mc_weight" or "btag_weight" in key:
91-
hists[f"{key}_per_process_ht_njet_nhf"] = create_columnflow_hist(
91+
hists[f"{key}_per_process_ht_njet_nhf"] = create_hist_from_variables(
9292
self.steps_variable,
9393
self.process_variable,
9494
self.ht_variable,

0 commit comments

Comments
 (0)