Skip to content

Commit

Permalink
[FIX] vtk compatibility with py3.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
saratheriver committed Nov 28, 2022
1 parent 50f86d1 commit 1bbb89a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 3 deletions.
Binary file modified enigmatoolbox/__pycache__/_version.cpython-37.pyc
Binary file not shown.
Binary file modified enigmatoolbox/__pycache__/_version.cpython-38.pyc
Binary file not shown.
Binary file modified enigmatoolbox/datasets/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified enigmatoolbox/datasets/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified enigmatoolbox/datasets/__pycache__/base.cpython-37.pyc
Binary file not shown.
Binary file modified enigmatoolbox/datasets/__pycache__/base.cpython-38.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 8 additions & 1 deletion enigmatoolbox/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_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
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
numpy>=1.11.0
matplotlib>=2.0.0
vtk==9.0.1
vtk>=8.1.0
nibabel
pillow
pandas
scipy>=0.17.0
scikit-learn>=0.22.0
nilearn
nilearn

0 comments on commit 1bbb89a

Please sign in to comment.