Skip to content

Commit 47fc8f0

Browse files
author
Ben Cipollini
committed
Add a final comment.
1 parent 41732f4 commit 47fc8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def concat_images(images, check_affines=True, axis=None):
144144
# Massage the output, to allow combining 3D and 4D images.
145145
is_3D = [len(d.shape) == 3 for d in out_data]
146146
is_4D = [len(d.shape) == 4 for d in out_data]
147-
if np.any(is_3D) and np.any(is_4D):
147+
if np.any(is_3D) and np.any(is_4D): # Convert all to 4D
148148
out_data = [data if is_4D[di] else np.reshape(data, data.shape + (1,))
149149
for di, data in enumerate(out_data)]
150150
out_data = np.concatenate(out_data, axis=axis)

0 commit comments

Comments
 (0)