Skip to content

Commit

Permalink
Allowing pyvista 0.41
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Jul 20, 2023
1 parent 232c348 commit 92e9b42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
import numpy as np
import pyvista as pv
from pyvista import _vtk as vtk
from pyvista.themes import DefaultTheme

try:
from pyvista.themes import DefaultTheme
except ImportError:
from pyvista.plotting.themes import DocumentTheme as DefaultTheme

from tqdm import tqdm

from ansys.mapdl.reader import _binary_reader, _reader, elements
Expand Down
2 changes: 1 addition & 1 deletion tests/archive/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_writehex(tmpdir, hex_archive):

def test_write_voxel(tmpdir):
filename = str(tmpdir.join("tmp.cdb"))
grid = pv.UniformGrid(dimensions=(10, 10, 10))
grid = pv.ImageData(dimensions=(10, 10, 10))
pymapdl_reader.save_as_archive(filename, grid)

archive = pymapdl_reader.Archive(filename)
Expand Down

0 comments on commit 92e9b42

Please sign in to comment.