Skip to content

Commit

Permalink
Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj committed Apr 21, 2024
1 parent 02ebfe9 commit e3428fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ansys/fluent/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ def _load_workflow(self, file_path: str, dynamic_interface: bool = True):
self._workflow.LoadWorkflow(FilePath=file_path)
self._activate_dynamic_interface(dynamic_interface=dynamic_interface)

def get_initial_task_list_while_creating_new_workflow(self):
def _get_initial_task_list_while_creating_new_workflow(self):
"""Get a list of independent tasks that can be inserted at the initial level
while creating a workflow."""
self._get_first_tasks_help_string_command_id_map()
Expand All @@ -1483,7 +1483,9 @@ def __init__(self, workflow):
if len(self._workflow.task_names()) == 0:
for (
item
) in self._workflow.get_initial_task_list_while_creating_new_workflow():
) in (
self._workflow._get_initial_task_list_while_creating_new_workflow()
):
insertable_task = type("Insert", (self._Insert,), {})(
self._workflow, item
)
Expand Down

0 comments on commit e3428fa

Please sign in to comment.