diff --git a/.devcontainer/codespaces-dev/requirements.txt b/.devcontainer/codespaces-dev/requirements.txt index 528e88e7718..2bf427e5859 100644 --- a/.devcontainer/codespaces-dev/requirements.txt +++ b/.devcontainer/codespaces-dev/requirements.txt @@ -1,5 +1,5 @@ ansys-dpf-core==0.10.1 -ansys-tools-visualization-interface==0.5.0 +ansys-tools-visualization-interface==0.8.3 autopep8==2.3.1 matplotlib==3.9.2 pandas==2.2.3 diff --git a/.devcontainer/codespaces-docs/requirements.txt b/.devcontainer/codespaces-docs/requirements.txt index 60f49becbc4..fc67712263f 100644 --- a/.devcontainer/codespaces-docs/requirements.txt +++ b/.devcontainer/codespaces-docs/requirements.txt @@ -1,7 +1,7 @@ ansys-dpf-core==0.10.1 ansys-mapdl-reader==0.54.2 ansys-sphinx-theme==0.16.6 -ansys-tools-visualization-interface==0.5.0 +ansys-tools-visualization-interface==0.8.3 grpcio==1.68.0 imageio-ffmpeg==0.5.1 imageio==2.36.0 diff --git a/.devcontainer/devcontainer-local/requirements.txt b/.devcontainer/devcontainer-local/requirements.txt index 6dad52c6449..0c410672c2d 100644 --- a/.devcontainer/devcontainer-local/requirements.txt +++ b/.devcontainer/devcontainer-local/requirements.txt @@ -1,7 +1,7 @@ ansys-dpf-core==0.10.1 ansys-mapdl-reader==0.54.2 ansys-sphinx-theme==1.2.2 -ansys-tools-visualization-interface==0.5.0 +ansys-tools-visualization-interface==0.8.3 autopep8==2.3.1 grpcio==1.68.0 imageio-ffmpeg==0.5.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 264c0a7411d..2ab9b203b6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ on: env: PROJECT_NAME: 'PyMAPDL' - MAIN_PYTHON_VERSION: '3.11' + MAIN_PYTHON_VERSION: '3.12' PACKAGE_NAME: 'ansys-mapdl-core' PACKAGE_NAMESPACE: 'ansys.mapdl.core' DOCUMENTATION_CNAME: 'mapdl.docs.pyansys.com' diff --git a/doc/changelog.d/3767.dependencies.md b/doc/changelog.d/3767.dependencies.md new file mode 100644 index 00000000000..4deeb59c827 --- /dev/null +++ b/doc/changelog.d/3767.dependencies.md @@ -0,0 +1 @@ +ci: using python3.12 as main testing python version \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 036c549fa57..b3caec9182d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,7 @@ tests = [ "scipy==1.15.2", "vtk==9.3.1", ] + doc = [ "ansys-dpf-core==0.10.1", "ansys-mapdl-reader==0.54.2", diff --git a/src/ansys/mapdl/core/plotting/visualizer.py b/src/ansys/mapdl/core/plotting/visualizer.py index f4df50e8d89..f8c5b79dd8b 100644 --- a/src/ansys/mapdl/core/plotting/visualizer.py +++ b/src/ansys/mapdl/core/plotting/visualizer.py @@ -225,15 +225,12 @@ def get_meshes_from_plotter(self): list[pv.PolyData] Plotted meshes. """ - datasets = [] - for actor in self.scene.actors.values(): - if hasattr(actor, "mapper"): - datasets.append(actor.mapper.dataset) - return [ actor.mapper.dataset for actor in self.scene.actors.values() if hasattr(actor, "mapper") + and hasattr(actor.mapper, "dataset") + and actor.mapper.dataset ] def add_labels(