Skip to content

Commit a0033a2

Browse files
constractieffigies
authored andcommitted
BF: fix dim_info transformation after orientation
1 parent 5942d3d commit a0033a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nifti1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ def as_reoriented(self, ornt):
20202020
# otherwise check where we have mapped it to
20212021
if value is None:
20222022
continue
2023-
new_dim[idx] = np.where(ornt[:, 0] == idx)[0]
2023+
new_dim[idx] = ornt[value, 0]
20242024

20252025
img.header.set_dim_info(*new_dim)
20262026

0 commit comments

Comments
 (0)