Skip to content

Commit

Permalink
RF: No longer need to support numpy 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed May 8, 2017
1 parent df9c160 commit 9fa1f4b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dipy/tracking/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,8 @@ def ndbincount(x, weights=None, shape=None):
shape = x.max(1) + 1

x = ravel_multi_index(x, shape)
# out = np.bincount(x, weights, minlength=np.prod(shape))
# out.shape = shape
# Use resize to be compatible with numpy < 1.6, minlength new in 1.6
out = np.bincount(x, weights)
out.resize(shape)
out = np.bincount(x, weights, minlength=np.prod(shape))
out.shape = shape

return out

Expand Down

0 comments on commit 9fa1f4b

Please sign in to comment.