Skip to content

Commit

Permalink
Don't cast the resampled streamlines into an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Jan 5, 2019
1 parent a2b857c commit 07cfef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dipy/tracking/streamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,9 @@ def orient_by_streamline(streamlines, standard, n_points=12, in_place=False,
possible to the standard.
"""
# Start by resampling into an array, so that distance calculation is easy:
fgarray = np.array(set_number_of_points(streamlines, n_points))
std_array = np.array(set_number_of_points([standard], n_points))
# Start by resampling, so that distance calculation is easy:
fgarray = set_number_of_points(streamlines, n_points)
std_array = set_number_of_points([standard], n_points)


if as_generator:
Expand Down

0 comments on commit 07cfef0

Please sign in to comment.