From 5fe273b0a69720be091850cce24902c385ba0cbc Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Fri, 21 Jun 2024 12:29:22 +0530 Subject: [PATCH 1/2] build: Bump version to v0.11.dev0 --- pyproject.toml | 5 ++--- tests/test_metadata.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fa072a17..7cee3c2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] # Check https://python-poetry.org/docs/pyproject/ for all available sections name = "ansys-fluent-visualization" -version = "0.10.dev0" +version = "0.11.dev0" description = "A python wrapper for ansys Fluent visualization" license = "MIT" authors = ["ANSYS, Inc. "] @@ -25,11 +25,10 @@ packages = [ [tool.poetry.dependencies] python = ">=3.9,<4.0" importlib-metadata = {version = "^4.0", python = "<3.9"} -ansys-fluent-core = "~=0.21.dev1" +ansys-fluent-core = "~=0.22.dev0" vtk = ">=9.3.0.rc0" pyvista = ">=0.39.0" pyvistaqt = ">=0.7.0" -pyside6 = ">=6.2.3" matplotlib = ">=3.5.1" requests = "==2.31.0" diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 4aea85c9..239d8b47 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -2,4 +2,4 @@ def test_pkg_version(): - assert __version__ == "0.10.dev0" + assert __version__ == "0.11.dev0" From 1e437310fcf8d69cc770ac4a3f15b8e1bf1310cd Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Wed, 3 Jul 2024 12:27:00 +0530 Subject: [PATCH 2/2] Refactoring. --- .../00-postprocessing/post_processing_exhaust_manifold.py | 4 +--- src/ansys/fluent/visualization/__init__.py | 2 ++ .../fluent/visualization/pyvista/pyvista_windows_manager.py | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/00-postprocessing/post_processing_exhaust_manifold.py b/examples/00-postprocessing/post_processing_exhaust_manifold.py index 45566450..68bae796 100644 --- a/examples/00-postprocessing/post_processing_exhaust_manifold.py +++ b/examples/00-postprocessing/post_processing_exhaust_manifold.py @@ -18,9 +18,7 @@ import ansys.fluent.core as pyfluent from ansys.fluent.core import examples -from ansys.fluent.visualization import set_config -from ansys.fluent.visualization.matplotlib import Plots -from ansys.fluent.visualization.pyvista import Graphics +from ansys.fluent.visualization import Graphics, Plots, set_config pyfluent.CONTAINER_MOUNT_PATH = pyfluent.EXAMPLES_PATH diff --git a/src/ansys/fluent/visualization/__init__.py b/src/ansys/fluent/visualization/__init__.py index ca1269ca..1f7bd55f 100644 --- a/src/ansys/fluent/visualization/__init__.py +++ b/src/ansys/fluent/visualization/__init__.py @@ -23,3 +23,5 @@ def version_info() -> str: from ansys.fluent.visualization._config import get_config, set_config # noqa: F401 +from ansys.fluent.visualization.matplotlib import Plots # noqa: F401 +from ansys.fluent.visualization.pyvista import Graphics # noqa: F401 diff --git a/src/ansys/fluent/visualization/pyvista/pyvista_windows_manager.py b/src/ansys/fluent/visualization/pyvista/pyvista_windows_manager.py index 13da2246..b79ca53f 100644 --- a/src/ansys/fluent/visualization/pyvista/pyvista_windows_manager.py +++ b/src/ansys/fluent/visualization/pyvista/pyvista_windows_manager.py @@ -381,8 +381,6 @@ def _display_contour(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]): plotter.add_mesh(mesh.contour(isosurfaces=20)) def _fetch_surface(self, obj): - surface_api = obj._api_helper.surface_api - surface_api.create_surface_on_server() dummy_object = "dummy_object" post_session = obj.get_root() if ( @@ -403,7 +401,6 @@ def _fetch_surface(self, obj): mesh.show_edges = obj.show_edges() self._fetch_mesh(mesh) del post_session.Meshes[dummy_object] - surface_api.delete_surface_on_server() def _display_surface(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]): dummy_object = "dummy_object"