From e3428fada4edfedea9bd64cc053dfa983e83cfd8 Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Sun, 21 Apr 2024 19:08:41 +0530 Subject: [PATCH] Refactor. --- src/ansys/fluent/core/workflow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ansys/fluent/core/workflow.py b/src/ansys/fluent/core/workflow.py index d0a5de6bc3f..fc21c037595 100644 --- a/src/ansys/fluent/core/workflow.py +++ b/src/ansys/fluent/core/workflow.py @@ -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() @@ -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 )