Skip to content

Commit

Permalink
feat: Enhanced search (#2816)
Browse files Browse the repository at this point in the history
* feat: Enhanced search

* test update

* working

* update signature and add warnings

* improvements

* add tests

* update doc

* resolve conflicts

* resolve conflicts 1

* doc fix 1

* update signature

* update test

* update test and search

* remove results

* update doc and fix tests

* update __init__

* update doc 2

* update exception

* change order of arguments

* _write_api_tree_file

* update _process_wildcards

* remove extra set

* remove file in spellchecker

* use rstrip

* update condition

* update condition and warning

* update nltk.download

* sys version

* update __init__ and test_search

* rstrip fix

* rstrip fix 1

* rstrip fix 2

* add else block

* update allapigen.py

* add script execution pyproject.toml

* restructuring 1

* remove flag

* update allapigen.py

* update names, signature, _process_misspelled

* download nltk_data, handle internet error

* update env var

* update nltk.data.path

* separate functions

* restructuring and test fixes

* generate fix

* improve handling

* improve handling and add more tests

* add more tests 1

* add 242 marker

* remove wildcard flag

* Revert "remove wildcard flag"

This reverts commit cb09775.

* add files to package

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Kathy Pippert <[email protected]>

* doc refactor 1

* add test for nltk download

* update interface and remove scikit-learn

* update interface warnings

* remove exception test

* integrate search_root

* update tests

* update tests 1

* update tests 2

* updat return type

* add tests for exact and match case

* update capitalize doc

* update logic and names

* update match_case condition

* update match_case condition

* Update src/ansys/fluent/core/utils/search.py

Co-authored-by: Sean Pearson <[email protected]>

* update _get_wildcard..

* update search doc match_case

* single json file

* download nltk

* update download_nltk

* update allapigen.py

* update allapigen.py 1

* error fix

* error fix 1

* error fix 2

* error fix 3

* error fix 4

* error fix 5

* error fix 6

---------

Co-authored-by: Kathy Pippert <[email protected]>
Co-authored-by: Sean Pearson <[email protected]>
  • Loading branch information
3 people authored May 24, 2024
1 parent be6fbf5 commit beef1be
Show file tree
Hide file tree
Showing 4 changed files with 864 additions and 31 deletions.
2 changes: 2 additions & 0 deletions codegen/allapigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from ansys.fluent.core import CODEGEN_OUTDIR, FluentMode, FluentVersion, launch_fluent
from ansys.fluent.core.codegen import StaticInfoType, allapigen, print_fluent_version
from ansys.fluent.core.utils.fluent_version import get_version_for_file_name
from ansys.fluent.core.utils.search import _search

if __name__ == "__main__":
t0 = time()
Expand Down Expand Up @@ -59,3 +60,4 @@
allapigen.generate(version, static_infos)
t2 = time()
print(f"Time to generate APIs: {t2 - t1:.2f} seconds")
_search("", version=version)
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ include = [
{ path = "src/ansys/fluent/core/generated/solver/settings_*/*.py", format = ["sdist", "wheel"] },
{ path = "src/ansys/fluent/core/generated/solver/settings_*/*.pyi", format = ["sdist", "wheel"] },
{ path = "src/ansys/fluent/core/generated/*.pickle", format = ["sdist", "wheel"] },
{ path = "src/ansys/fluent/core/generated/api_tree/*.txt", format = ["sdist", "wheel"] },
]

packages = [
Expand All @@ -49,6 +50,7 @@ grpcio = "^1.30.0"
grpcio-health-checking = "^1.30.0"
h5py = { version = "==3.11.0", optional = true }
lxml = "^4.9.2"
nltk = "^3.8.1"
numpy= "^1.21.5"
pandas = "^2.0.3"
platformdirs = "^3.5.1"
Expand Down
Loading

0 comments on commit beef1be

Please sign in to comment.