We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3edd0a commit 78772c4Copy full SHA for 78772c4
nibabel/nifti1.py
@@ -2020,7 +2020,7 @@ def as_reoriented(self, ornt):
2020
# otherwise check where we have mapped it to
2021
if value is None:
2022
continue
2023
- new_dim[idx] = np.where(ornt[:, 0] == idx)[0]
+ new_dim[idx] = ornt[value, 0]
2024
2025
img.header.set_dim_info(*new_dim)
2026
0 commit comments