Skip to content

Commit efefdb1

Browse files
committed
fix conflicts
1 parent 416757e commit efefdb1

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

nipype/algorithms/mesh.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
iflogger = logging.getLogger('interface')
2626

2727

28-
<<<<<<< HEAD
2928
class WarpPointsInputSpec(BaseInterfaceInputSpec):
3029
points = File(exists=True, mandatory=True,
3130
desc=('file containing the point set'))
@@ -43,6 +42,7 @@ class WarpPointsOutputSpec(TraitedSpec):
4342

4443

4544
class WarpPoints(BaseInterface):
45+
4646
"""
4747
Applies a displacement field to a point set in vtk
4848
@@ -57,6 +57,7 @@ class WarpPoints(BaseInterface):
5757
"""
5858
input_spec = WarpPointsInputSpec
5959
output_spec = WarpPointsOutputSpec
60+
_redirect_x = True
6061

6162
def _gen_fname(self, in_file, suffix='generated', ext=None):
6263
import os.path as op
@@ -114,7 +115,7 @@ def _run_interface(self, runtime):
114115
ras2vox = np.linalg.inv(vox2ras)
115116
origin = affine[0:3, 3]
116117
voxpoints = np.array([np.dot(ras2vox,
117-
(p-origin)) for p in points])
118+
(p-origin)) for p in points])
118119

119120
warps = []
120121
for axis in warp_dims:
@@ -151,22 +152,12 @@ def _list_outputs(self):
151152
return outputs
152153

153154

154-
class P2PDistanceInputSpec(BaseInterfaceInputSpec):
155-
=======
156155
class ComputeMeshWarpInputSpec(BaseInterfaceInputSpec):
157-
>>>>>>> master
158156
surface1 = File(exists=True, mandatory=True,
159157
desc=('Reference surface (vtk format) to which compute '
160158
'distance.'))
161159
surface2 = File(exists=True, mandatory=True,
162-
<<<<<<< HEAD
163-
desc=("Test surface (vtk format) from which compute "
164-
"distance."))
165-
weighting = traits.Enum("none", "surface", usedefault=True,
166-
desc=('"none": no weighting is performed, '
167-
'"surface": edge distance is weighted by the'
168-
' corresponding surface area'))
169-
=======
160+
170161
desc=('Test surface (vtk format) from which compute '
171162
'distance.'))
172163
metric = traits.Enum('euclidean', 'sqeuclidean', usedefault=True,
@@ -180,7 +171,6 @@ class ComputeMeshWarpInputSpec(BaseInterfaceInputSpec):
180171
'to surface2')
181172
out_file = File('distance.npy', usedefault=True,
182173
desc='numpy file keeping computed distances and weights')
183-
>>>>>>> master
184174

185175

186176
class ComputeMeshWarpOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)