Skip to content

Commit 014bb05

Browse files
author
Félix C. Morency
committed
BF: Fixed patient orientation inversion
1 parent 8174624 commit 014bb05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/ecat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@ def _get_oriented_data(self, raw_data, orientation=None):
677677
raise ValueError('orientation should be None,\
678678
neurological or radiological')
679679

680-
if orientation in patient_orient_radiological:
680+
if orientation in patient_orient_neurological:
681681
raw_data = raw_data[::-1, ::-1, ::-1]
682-
elif orientation in patient_orient_neurological:
682+
elif orientation in patient_orient_radiological:
683683
raw_data = raw_data[::, ::-1, ::-1]
684684

685685
return raw_data

0 commit comments

Comments
 (0)