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

Fixing Pyvista for the next release #2140

Merged
merged 1 commit into from
Jun 27, 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
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Per contract with Sphinx-Gallery, this method must be available at top level
try:
from pyvista.utilities.sphinx_gallery import _get_sg_image_scraper
import pyvista

_HAS_PYVISTA = True
except ModuleNotFoundError: # pragma: no cover
Expand Down
5 changes: 1 addition & 4 deletions src/ansys/mapdl/core/mapdl_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def merge_polydata(items):
"""Merge list of polydata or unstructured grids"""

# lazy import here for faster module loading
try:
from pyvista._vtk import vtkAppendPolyData
except:
from vtk import vtkAppendPolyData
from vtkmodules.vtkFiltersCore import vtkAppendPolyData

afilter = vtkAppendPolyData()
for item in items:
Expand Down