Skip to content

Commit

Permalink
DOC: whitespace clean for orientations
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Nov 1, 2013
1 parent 31445dc commit ff2b545
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nibabel/orientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,18 @@ def io_orientation(affine, tol=None):
R[out_ax, :] = 0
return ornt


def ornt_transform(start_ornt, end_ornt):
'''Return the orientation that transforms from `start_ornt` to `end_ornt`.
Parameters
----------
start_ornt : (n,2) orientation array
Initial orientation.
end_ornt : (n,2) orientation array
Final orientation.
Returns
-------
orientations : (p, 2) ndarray
Expand Down Expand Up @@ -128,6 +129,7 @@ def ornt_transform(start_ornt, end_ornt):
end_out_idx)
return result


def apply_orientation(arr, ornt):
''' Apply transformations implied by `ornt` to the first
n axes of the array `arr`
Expand Down

0 comments on commit ff2b545

Please sign in to comment.