Skip to content

Commit 419998a

Browse files
committed
forced voxel order to be upper case when read from the header in .trk file
1 parent 6d54618 commit 419998a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/streamlines/trk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_affine_trackvis_to_rasmm(header):
106106
if hasattr(vox_order, 'item'): # structured array
107107
vox_order = header[Field.VOXEL_ORDER].item()
108108
affine_ornt = "".join(aff2axcodes(header[Field.VOXEL_TO_RASMM]))
109-
header_ornt = axcodes2ornt(vox_order.decode('latin1'))
109+
header_ornt = axcodes2ornt(vox_order.decode('latin1').upper())
110110
affine_ornt = axcodes2ornt(affine_ornt)
111111
ornt = nib.orientations.ornt_transform(header_ornt, affine_ornt)
112112
M = nib.orientations.inv_ornt_aff(ornt, header[Field.DIMENSIONS])

0 commit comments

Comments
 (0)