Skip to content

Commit e8509c2

Browse files
committed
FIX: Residual imports
1 parent 35d980d commit e8509c2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

bin/pysurfer

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,8 @@ if __name__ == '__main__':
101101

102102
# It's nice to have mlab in the namespace, but we'll import it
103103
# after the other stuff so getting usage is not interminable
104-
try:
105-
from mayavi import mlab
106-
except ImportError:
107-
from enthought.mayavi import mlab
104+
from mayavi import mlab
105+
assert mlab # make pyflakes happy
108106

109107
# Now clean up the namespace a bit
110108
del parser, args

surfer/tests/test_viz.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
from surfer import Brain
99
from surfer import io
10-
try:
11-
from mayavi import mlab
12-
assert mlab
13-
except ImportError:
14-
from enthought.mayavi import mlab
10+
from mayavi import mlab
1511

1612
if 'SUBJECTS_DIR' not in os.environ:
1713
raise ValueError('Test suite relies on the definition of SUBJECTS_DIR')

0 commit comments

Comments
 (0)