Skip to content

Commit

Permalink
improving documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfsilva committed Jul 21, 2023
1 parent 179138a commit f9b9d35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wfcommons/wfbench/translator/abstract_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ def _find_children(self, task_name: str) -> list[Task]:
:type task_name: str
:return: List of task's children.
:rtype: List[Task]
:rtype: list[Task]
"""
self.logger.debug(f"Finding children for task '{task_name}'")
children = []
children = None
for node in self.instance.instance["workflow"]["tasks"]:
if node["name"] == task_name:
children = node["children"]
Expand All @@ -151,10 +151,10 @@ def _find_parents(self, task_name: str) -> list[Task]:
:type task_name: str
:return: List of task's parents.
:rtype: List[Task]
:rtype: list[Task]
"""
self.logger.debug(f"Finding parents for task '{task_name}'")
parents = []
parents = None
for node in self.instance.instance["workflow"]["tasks"]:
if node["name"] == task_name:
parents = node["parents"]
Expand Down

0 comments on commit f9b9d35

Please sign in to comment.