Skip to content

Commit 93eb5ee

Browse files
committed
ENH: Handle "identity" values when arranging xfms
1 parent 7665fae commit 93eb5ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

niworkflows/interfaces/itk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ def _arrange_xfms(transforms, num_files, tmp_folder):
254254
# Initialize the transforms matrix
255255
xfms_T = []
256256
for i, tf_file in enumerate(transforms):
257+
if tf_file == "identity":
258+
xfms_T.append([tf_file] * num_files)
259+
continue
260+
257261
# If it is a deformation field, copy to the tfs_matrix directly
258262
if guess_type(tf_file)[0] != "text/plain":
259263
xfms_T.append([tf_file] * num_files)

0 commit comments

Comments
 (0)