Skip to content

Commit

Permalink
feat: Remove unrelated synsets 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Nov 19, 2024
1 parent b1fe141 commit 360025e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ansys/fluent/core/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,14 @@ def _write_api_tree_file(api_tree_data: dict, api_object_names: list):
for api_object_name_synset in api_object_name_synsets:
synset_names.add(api_object_name_synset.name().split(".")[0])
if synset_names:
unrelated_synsets = set()
synset_names.discard(name)
for synset_name in synset_names:
if synset_name not in api_object_names:
synset_names.discard(synset_name)
all_api_object_name_synsets[name] = synset_names
unrelated_synsets.add(synset_name)
all_api_object_name_synsets[name] = synset_names.difference(
unrelated_synsets
)
api_tree_data["all_api_object_name_synsets"] = all_api_object_name_synsets

api_tree_file = _get_api_tree_data_file()
Expand Down

0 comments on commit 360025e

Please sign in to comment.