Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cache_cleaner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cleanup caches
name: Cleanup caches 🧹
on:
workflow_dispatch:
pull_request:
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"psutil>=5.9.4",
"pyansys-tools-versioning>=0.3.3",
"ansys-tools-path>=0.2.4",
"pyiges[full]>=0.3.0", # Since v0.3.0, the 'full' flag is needed in order to install 'geomdl'
"pyiges[full]>=0.3.1", # Since v0.3.0, the 'full' flag is needed in order to install 'geomdl'
"pyvista>=0.33.0",
"scipy>=1.3.0", # for sparse (consider optional?)
"tqdm>=4.45.0",
Expand Down Expand Up @@ -61,17 +61,18 @@ tests = [
"scipy==1.10.1; python_version < '3.9'", # to support python 3.8
"scipy==1.11.1; python_version > '3.8'",
"pandas==2.0.3",
"pyiges[full]==0.3.1",
"pytest==7.4.0",
"pytest-cov==4.1.0",
"pyvista==0.39.1",
"pyvista==0.40.0",
"pyansys-tools-report==0.6.0",
"vtk==9.2.6",
"pytest-rerunfailures==12.0",
]
doc = [
"sphinx==6.2.1",
"ansys-dpf-core==0.8.1",
"ansys-mapdl-reader==0.52.16",
"ansys-mapdl-reader==0.52.17",
"ansys-sphinx-theme==0.9.9",
"grpcio==1.51.1",
"imageio-ffmpeg==0.4.8",
Expand All @@ -82,10 +83,11 @@ doc = [
"numpydoc==1.5.0",
"pandas==2.0.3",
"plotly==5.15.0",
"pyiges[full]==0.3.1",
"pypandoc==1.11",
"pytest-sphinx==0.5.0",
"pythreejs==2.4.2",
"pyvista==0.39.1",
"pyvista==0.40.0",
"sphinx-autobuild==2021.3.14",
"sphinx-autodoc-typehints==1.23.0",
"sphinx-copybutton==0.5.2",
Expand Down
9 changes: 8 additions & 1 deletion src/ansys/mapdl/core/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ def __init__(self, core, optional=None, additional=None, **kwargs):
# Information about the GPU - bare except in case there is a rendering
# bug that the user is trying to report.
if self.kwargs.get("gpu", False) and _HAS_PYVISTA:
from pyvista.utilities.errors import GPUInfo
from pyvista import PyVistaDeprecationWarning

try:
from pyvista.utilities.errors import (
GPUInfo, # deprecated in pyvista 0.40.0
)
except (PyVistaDeprecationWarning, ImportError):
from pyvista.report import GPUInfo

try:
self.kwargs["extra_meta"] = [(t[1], t[0]) for t in GPUInfo().get_info()]
Expand Down