Skip to content

Commit

Permalink
Fixing Pyvista for the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Jun 23, 2023
1 parent 2c747d1 commit 0ce2348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
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

0 comments on commit 0ce2348

Please sign in to comment.