Skip to content

Commit

Permalink
Merge pull request dipy#3087 from maharshi-gor/bugfix/remove-unique-c…
Browse files Browse the repository at this point in the history
…heck

backward compatibility fixed
  • Loading branch information
skoudoro authored Feb 28, 2024
2 parents 83060df + 22cf8ec commit 061daf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dipy/viz/horizon/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def is_binary_image(data, unique_points=100):
for dim in data.shape:
indices.append(rng.integers(0, dim - 1, size=unique_points))

return np.unique(data[*indices]).shape[0] <= 2
return np.unique(np.take(data, indices)).shape[0] <= 2

0 comments on commit 061daf1

Please sign in to comment.