Skip to content

Commit

Permalink
Fix possible task list.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj committed Apr 1, 2024
1 parent 2981771 commit 2465ce1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/ansys/fluent/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,11 +1297,14 @@ def _populate_help_string_command_id_map(self):
if isinstance(command_obj, PyCommand):
command_obj_instance = command_obj.create_instance()
help_str = command_obj_instance.get_attr("helpString")
if help_str and help_str.islower():
display_name = command_obj_instance.get_attr("displayText")
if (
help_str
and help_str.islower()
and display_name in self._task_list
):
self._help_string_command_id_map[help_str] = command
self._help_string_display_text_map[help_str] = (
command_obj_instance.get_attr("displayText")
)
self._help_string_display_text_map[help_str] = display_name
del command_obj_instance

def get_possible_tasks(self):
Expand Down

0 comments on commit 2465ce1

Please sign in to comment.