You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't understood, do you agree with my point?
In my example, should img_ornt.header.get_dim_info() return (0, 2, 1)?
I'm asking to make sure that I have completely comprehended the definition (i.e. the operation) of ornt.
Sorry, yes. I think you're right. I'm having some trouble thinking through the orientations, myself. I'll fix up the tests, and then test out your fix to make sure that it resolves them.
Running the test
we get
although (if I'm not wrong) the correct output should look like
(note the difference in the last line).
Shouldn't the following
nibabel/nibabel/nifti1.py
Line 2023 in 5ab9414
be
new_dim[idx] = ornt[value, 0]
?[In which case, it would be better to ensure that value has an integer data type; however,
io_orienatation
returns a float array.]The text was updated successfully, but these errors were encountered: