Skip to content

Commit 3974afa

Browse files
author
Robert D. Vincent
committed
Fix overly long line.
1 parent 04cd833 commit 3974afa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabel/minc1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ def get_affine(self):
105105
dim_names = list(self._dim_names) # for indexing in loop
106106
for i, name in enumerate(self._spatial_dims):
107107
dim = self._dims[dim_names.index(name)]
108-
rot_mat[:, i] = dim.direction_cosines if hasattr(dim, 'direction_cosines') else _default_dir_cos[name]
108+
rot_mat[:, i] = (dim.direction_cosines
109+
if hasattr(dim, 'direction_cosines')
110+
else _default_dir_cos[name])
109111
steps[i] = dim.step if hasattr(dim, 'step') else 1.0
110112
starts[i] = dim.start if hasattr(dim, 'start') else 0.0
111113
origin = np.dot(rot_mat, starts)

0 commit comments

Comments
 (0)