Skip to content

Commit dc6c6b1

Browse files
committed
fix: change LTA type
1 parent 7d1362b commit dc6c6b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nitransforms/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,12 @@ def set_type(self, target):
253253
# VOX2VOX -> RAS2RAS
254254
if current == 0 and target == 1:
255255
M = np.linalg.inv(src.as_affine()).dot(xform['m_L']).dot(dst.as_affine())
256-
xform['m_L'] = M
257256
else:
258257
raise NotImplementedError(
259258
"Converting {0} to {1} is not yet available".format(
260259
transform_codes.label[current],
261260
transform_codes.label[target]
262261
)
263262
)
263+
xform['m_L'] = M
264+
self['type'] = target

0 commit comments

Comments
 (0)