Skip to content

Commit 8baba45

Browse files
committed
improved VTK version parsing
1 parent a94158b commit 8baba45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/algorithms/mesh.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def __init__(self, **inputs):
6262

6363
try:
6464
from tvtk.tvtk_classes.vtk_version import vtk_build_version
65-
self._vtk_version = tuple([int(v) for v in vtk_build_version.split('.')])
65+
vsplits = vtk_build_version.split('.')
66+
self._vtk_version = tuple([int(vsplits[0]), int(vsplits[1])] + vsplits[2:])
6667
except ImportError:
6768
iflogger.warning(
6869
'VTK version-major inspection using tvtk failed, assuming VTK == 4.0.')

0 commit comments

Comments
 (0)