Skip to content

Commit abd899a

Browse files
committed
remove unncecessary pass statements
1 parent b94f007 commit abd899a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

nipype/algorithms/mesh.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def _run_interface(self, runtime):
8686
vtk_major = vtk.VTK_MAJOR_VERSION
8787
except ImportError:
8888
iflogger.warn(('python-vtk could not be imported'))
89-
pass
9089

9190
try:
9291
from tvtk.api import tvtk
@@ -98,10 +97,8 @@ def _run_interface(self, runtime):
9897
ETSConfig.toolkit = 'null'
9998
except ImportError:
10099
iflogger.warn(('ETS toolkit could not be imported'))
101-
pass
102100
except ValueError:
103101
iflogger.warn(('ETS toolkit could not be set to null'))
104-
pass
105102

106103
import nibabel as nb
107104
import numpy as np
@@ -233,10 +230,8 @@ def _run_interface(self, runtime):
233230
ETSConfig.toolkit = 'null'
234231
except ImportError:
235232
iflogger.warn(('ETS toolkit could not be imported'))
236-
pass
237233
except ValueError:
238234
iflogger.warn(('ETS toolkit is already set'))
239-
pass
240235

241236
r1 = tvtk.PolyDataReader(file_name=self.inputs.surface1)
242237
r2 = tvtk.PolyDataReader(file_name=self.inputs.surface2)
@@ -256,7 +251,6 @@ def _run_interface(self, runtime):
256251
errvector = nla.norm(diff, axis=1)
257252
except TypeError: # numpy < 1.9
258253
errvector = np.apply_along_axis(nla.norm, 1, diff)
259-
pass
260254

261255
if self.inputs.metric == 'sqeuclidean':
262256
errvector = errvector ** 2
@@ -367,10 +361,8 @@ def _run_interface(self, runtime):
367361
ETSConfig.toolkit = 'null'
368362
except ImportError:
369363
iflogger.warn(('ETS toolkit could not be imported'))
370-
pass
371364
except ValueError:
372365
iflogger.warn(('ETS toolkit is already set'))
373-
pass
374366

375367
r1 = tvtk.PolyDataReader(file_name=self.inputs.in_surf)
376368
vtk1 = r1.output

0 commit comments

Comments
 (0)