Skip to content

Commit 8970ab4

Browse files
committed
Fixed tests
1 parent 40b4ee8 commit 8970ab4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

nipype/algorithms/mesh.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
import nibabel as nb
1919
import numpy as np
2020
from scipy.spatial.distance import euclidean
21+
from nipype.utils.misc import package_check
2122

2223
try:
23-
from tvtk.api import tvtk
24-
except ImportError:
24+
package_check('tvtk')
25+
except Exception, e:
2526
warnings.warn('tvtk or vtk not installed')
26-
raise
27+
else:
28+
from tvtk.api import tvtk
29+
2730

2831
from .. import logging
2932

nipype/testing/data/surf1.vtk

Whitespace-only changes.

nipype/testing/data/surf2.vtk

Whitespace-only changes.

0 commit comments

Comments
 (0)