Skip to content

Commit

Permalink
Add compatibility with VTK 9.2 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail authored Jul 12, 2022
1 parent 7c6684c commit b3f3be4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion brainspace/vtk_interface/wrappers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@

import numpy as np

from vtk.util.vtkConstants import VTK_BIT, VTK_STRING, VTK_UNICODE_STRING
from vtk.util.vtkConstants import VTK_BIT, VTK_STRING

# VTK_UNICODE_STRING has been removed since VTK 9.2.
# See: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/release/9.2.md
try:
from vtk.util.vtkConstants import VTK_UNICODE_STRING
except ImportError:
VTK_UNICODE_STRING = VTK_STRING


re_state = 'Set(?P<state>(?P<root>[A-Z0-9].*)To(?P<value>[A-Z0-9].*))'
Expand Down

0 comments on commit b3f3be4

Please sign in to comment.