Skip to content

Commit 9a74880

Browse files
committed
removed empty line; fixed condition c is None
1 parent 540983d commit 9a74880

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/orientations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,8 @@ def axcodes2ornt(axcodes, labels=None):
349349
[ 0., -1.],
350350
[ 2., 1.]])
351351
"""
352-
353352
if labels is None:
354-
axcodes = tuple(c.upper() for c in axcodes)
353+
axcodes = tuple(c.upper() if c is not None else None for c in axcodes)
355354
labels = list(zip('LPI', 'RAS'))
356355
n_axes = len(axcodes)
357356
ornt = np.ones((n_axes, 2), dtype=np.int8) * np.nan

0 commit comments

Comments
 (0)