We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b4ee8 commit 8970ab4Copy full SHA for 8970ab4
nipype/algorithms/mesh.py
@@ -18,12 +18,15 @@
18
import nibabel as nb
19
import numpy as np
20
from scipy.spatial.distance import euclidean
21
+from nipype.utils.misc import package_check
22
23
try:
- from tvtk.api import tvtk
24
-except ImportError:
+ package_check('tvtk')
25
+except Exception, e:
26
warnings.warn('tvtk or vtk not installed')
- raise
27
+else:
28
+ from tvtk.api import tvtk
29
+
30
31
from .. import logging
32
nipype/testing/data/surf1.vtk
nipype/testing/data/surf2.vtk
0 commit comments