Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyvista 0.40 warnings #280

Merged
merged 3 commits into from
Jul 7, 2023
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
7 changes: 6 additions & 1 deletion ansys/mapdl/reader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
import appdirs

# Per contract with Sphinx-Gallery, this method must be available at top level
from pyvista.utilities.sphinx_gallery import _get_sg_image_scraper
try:
# for pyvista >= 0.40
from pyvista.plotting.utilities import _get_sg_image_scraper
except ImportError:
from pyvista.utilities.sphinx_gallery import _get_sg_image_scraper


from ansys.mapdl.reader import examples
from ansys.mapdl.reader._version import __version__
Expand Down
8 changes: 7 additions & 1 deletion ansys/mapdl/reader/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@

import numpy as np
import pyvista
from pyvista.utilities.errors import GPUInfo

try:
# for pyvista >= 0.40
from pyvista.report import GPUInfo
except ImportError:
from pyvista.utilities.errors import GPUInfo

import scooby


Expand Down