Skip to content

Commit

Permalink
Fix doctest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
etpeterson committed Sep 3, 2024
1 parent c33f89b commit bb76748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilities/process/diffusion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@


def angle_between(v1, v2):
""" Returns the angle in radians between vectors 'v1' and 'v2'::
""" Returns the angle in degrees between vectors 'v1' and 'v2'::
>>> angle_between((1, 0, 0), (0, 1, 0))
1.5707963267948966
90.0
>>> angle_between((1, 0, 0), (1, 0, 0))
0.0
>>> angle_between((1, 0, 0), (-1, 0, 0))
3.141592653589793
180.0
"""
nv1 = np.linalg.norm(v1)
nv2 = np.linalg.norm(v2)
Expand Down

0 comments on commit bb76748

Please sign in to comment.