Skip to content

Commit

Permalink
Refactoring of component_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato authored Aug 20, 2024
1 parent 50216c4 commit 0e83d9a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions nf_core/components/components_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,12 @@ def get_components_to_install(
if link.startswith("../../../"):
name_split = name.lower().split("_")
component_name = "/".join(name_split)
component_dict = {
"name": component_name,
"org_path": None,
"git_remote": None,
"branch": None,
}
modules[component_name] = component_dict
current_comp_dict = modules
elif link.startswith("../"):
component_name = name.lower()
component_dict = {"name": component_name, "org_path": None, "git_remote": None, "branch": None}
subworkflows[component_name] = component_dict
current_comp_dict = subworkflows
component_dict = {"name": component_name, "org_path": None, "git_remote": None, "branch": None}
current_comp_dict[component_name] = component_dict

if Path(subworkflow_dir, "meta.yml").exists():
with open(Path(subworkflow_dir, "meta.yml")) as fh:
Expand Down

0 comments on commit 0e83d9a

Please sign in to comment.