From 4ac1054953e01b6bf716cf40a7d1215189ed71c8 Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Wed, 1 May 2024 17:54:19 -0400 Subject: [PATCH] fix: test --- src/ansys/fluent/core/__init__.py | 2 +- src/ansys/fluent/core/codegen/datamodelgen.py | 4 ++-- src/ansys/fluent/core/codegen/tuigen.py | 4 ++-- src/ansys/fluent/core/session_solver.py | 2 +- src/ansys/fluent/core/utils/search.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ansys/fluent/core/__init__.py b/src/ansys/fluent/core/__init__.py index 465f3490683..3b1694e5448 100644 --- a/src/ansys/fluent/core/__init__.py +++ b/src/ansys/fluent/core/__init__.py @@ -88,7 +88,7 @@ def version_info() -> str: GENERATED_API_DIR = (Path(__file__) / ".." / "generated").resolve() -# TODO: cleanup the following and related code +# TODO: clean up the following and related code def wrap_api_call(f, *args, **kwargs): """Wrap API call.""" # overwritten in PyConsole diff --git a/src/ansys/fluent/core/codegen/datamodelgen.py b/src/ansys/fluent/core/codegen/datamodelgen.py index 42bbdff5bf9..6ef086cfdd0 100644 --- a/src/ansys/fluent/core/codegen/datamodelgen.py +++ b/src/ansys/fluent/core/codegen/datamodelgen.py @@ -84,7 +84,7 @@ def _build_command_query_docstring(name: str, info: Any, indent: str, is_command class DataModelStaticInfo: - """Datamodel static information.""" + """Stores datamodel static information.""" _noindices = [] @@ -109,7 +109,7 @@ def __init__( class DataModelGenerator: - """Datamodel API class generator.""" + """Provides the datamodel API class generator.""" def __init__(self, version, sessions: dict): self.version = version diff --git a/src/ansys/fluent/core/codegen/tuigen.py b/src/ansys/fluent/core/codegen/tuigen.py index 2c6958a0493..8e0797a634f 100644 --- a/src/ansys/fluent/core/codegen/tuigen.py +++ b/src/ansys/fluent/core/codegen/tuigen.py @@ -49,7 +49,7 @@ def _get_tui_filepath(mode: str, version: str): _INDENT_STEP = 4 -# TODO: Move doc specific variables to docgen +# TODO: Move doc-specific variables to docgen def _get_tui_docdir(mode: str): @@ -168,7 +168,7 @@ def find_class(self, module, name): class TUIGenerator: - """Class to generate explicit TUI menu classes.""" + """Generates explicit TUI menu classes.""" def __init__(self, mode: str, version: str, sessions: dict): self._mode = mode diff --git a/src/ansys/fluent/core/session_solver.py b/src/ansys/fluent/core/session_solver.py index 5d479280a4f..bc6b1e9dc1e 100644 --- a/src/ansys/fluent/core/session_solver.py +++ b/src/ansys/fluent/core/session_solver.py @@ -198,7 +198,7 @@ def _workflow_se(self): """Datamodel root for workflow.""" try: workflow_module = importlib.import_module( - f"ansys.fluent.core.datamodel_{self._version}.workflow" + f"ansys.fluent.core.generated.datamodel_{self._version}.workflow" ) workflow_se = workflow_module.Root(self._se_service, "workflow", []) except ImportError: diff --git a/src/ansys/fluent/core/utils/search.py b/src/ansys/fluent/core/utils/search.py index 78be3cb2f9a..32dea96fbc2 100644 --- a/src/ansys/fluent/core/utils/search.py +++ b/src/ansys/fluent/core/utils/search.py @@ -68,7 +68,7 @@ def _get_version_path_prefix_from_obj(obj: Any): path = [ ( "" - if module.startswith("ansys.fluent.core.meshing") + if module.startswith("ansys.fluent.core.generated.meshing") else "" ), "tui",