Skip to content

Commit

Permalink
fix(hyfi/main): change "tasks" to "config_group" in condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 29, 2023
1 parent a44c171 commit 8b1bfb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hyfi/main/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ def run_config(
"The HyFI config is not instantiatable, running HyFI task with the config"
)
# Run the HyFI task
if "tasks" in config or cmd_name == "run_workflow":
config_group = config.get("config_group", "")
if config_group == "workflow" or cmd_name == "run_workflow":
workflow = HyFI.workflow(**config)
HyFI.run_workflow(workflow)
elif "task" in config and (cmd_name is None or cmd_name == "run_task"):
Expand Down

0 comments on commit 8b1bfb3

Please sign in to comment.