Skip to content

Commit 9f93a67

Browse files
Julien Marabottooesteban
authored andcommitted
enh: removed straneous comments, update nonlinear
1 parent 95a215e commit 9f93a67

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

nitransforms/nonlinear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def map(self, x, inverse=False):
168168
indexes = np.round(ijk).astype("int")
169169

170170
if np.all(np.abs(ijk - indexes) < 1e-3):
171-
indexes = tuple(tuple(i) for i in indexes.T)
171+
indexes = tuple(tuple(i) for i in indexes)
172172
return self._field[indexes]
173173

174174
return np.vstack(tuple(

nitransforms/tests/test_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ def test_ImageGrid(get_testdata, image_orientation):
4242
# Test ras2vox and vox2ras conversions
4343
ijk = [[10, 10, 10], [40, 4, 20], [0, 0, 0], [s - 1 for s in im.shape[:3]]]
4444
xyz = [img._affine.dot(idx + [1])[:-1] for idx in ijk]
45-
# xyz = np.array([np.tensordot(img._affine, idx + [1], axes=1)[:-1] for idx in ijk])
4645

47-
# import pdb; pdb.set_trace()
4846
assert np.allclose(np.squeeze(img.ras(ijk[0])), xyz[0])
4947
assert np.allclose(np.round(img.index(xyz[0])), ijk[0])
5048
assert np.allclose(img.ras(ijk).T, xyz)

0 commit comments

Comments
 (0)