Skip to content

Commit 348f838

Browse files
committed
use proper labels for orientation
1 parent 89eedc5 commit 348f838

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nibabel/processing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ def conform(from_img,
386386
from_img=from_img, to_vox_map=to_img, order=order, mode="constant",
387387
cval=cval, out_class=out_class)
388388

389-
labels =list(zip('LPI', 'RAS'))
390-
# list(zip('RPI', 'LAS')
391389
# Reorient to desired orientation.
392-
return out_img.as_reoriented(axcodes2ornt(orientation, labels=labels))
390+
ornt = axcodes2ornt(orientation, labels=list(zip('RPI', 'LAS')))
391+
return out_img.as_reoriented(ornt)

0 commit comments

Comments
 (0)