Skip to content

Commit

Permalink
bugfix in default producer setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mafrahm committed Aug 4, 2023
1 parent 20c92f1 commit fa31954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hbw/config/defaults_and_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ def default_ml_model(cls, container, task_params):

def default_producers(cls, container, task_params):
""" Default producers chosen based on the Inference model and the ML Model """
dataset_inst = task_params.get("dataset_inst", None)

# per default, use the ml_inputs and event_weights
# TODO: we might need two ml_inputs producers in the future (sl vs dl)
default_producers = ["ml_inputs"]
if task_params["dataset_inst"].is_mc:
if dataset_inst and dataset_inst.is_mc:
# run event weights producer only if it's a MC dataset
default_producers.append("event_weights")

Expand Down

0 comments on commit fa31954

Please sign in to comment.