Skip to content

Commit 139ffac

Browse files
committed
Fixed bug
Input parameter name was used wrongly
1 parent 370cdbf commit 139ffac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/algorithms/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def _run_interface(self, runtime):
7070
vtk2 = r2.output
7171
r1.update()
7272
r2.update()
73-
73+
assert( len(vtk1.points) == len(vtk2.points) )
7474
d = 0.0
7575
totalWeight = 0.0
7676
for p1,p2 in zip( vtk1.points, vtk2.points ):
7777
weight = 1.0
78-
if (self.inputs.method == 'surface'):
78+
if (self.inputs.weighting == 'surface'):
7979
#compute surfaces, set in weight
8080
print "Error, not implemented"
8181

0 commit comments

Comments
 (0)