Skip to content

Commit f56f08d

Browse files
committed
vtkmodules.util.vtkConstants is obsolete
the deprecation note mentiones the base vtk module, but importing that is not advisable due to issues with non-existent optional modules.
1 parent 34d6e81 commit f56f08d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

python/damask/_vtk.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
vtkRectilinearGrid,
3131
vtkUnstructuredGrid,
3232
vtkPolyData,
33+
VTK_TRIANGLE,
34+
VTK_QUAD,
35+
VTK_TETRA,
36+
VTK_HEXAHEDRON,
3337
)
3438
from vtkmodules.vtkIOLegacy import (
3539
vtkGenericDataObjectReader,
@@ -56,12 +60,6 @@
5660
from vtkmodules.vtkRenderingAnnotation import (
5761
vtkScalarBarActor,
5862
)
59-
from vtkmodules.util.vtkConstants import (
60-
VTK_TRIANGLE,
61-
VTK_QUAD,
62-
VTK_TETRA,
63-
VTK_HEXAHEDRON,
64-
)
6563
from vtkmodules.util.numpy_support import (
6664
numpy_to_vtk,
6765
numpy_to_vtkIdTypeArray,

0 commit comments

Comments
 (0)