Skip to content

Commit

Permalink
110: anticipate future numpy deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico de Vos committed Mar 21, 2019
1 parent 8b1c614 commit f06831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kmodes/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ def decode_centroids(encoded, mapping):

def get_unique_rows(a):
"""Gets the unique rows in a numpy array."""
return np.vstack({tuple(row) for row in a})
return np.vstack(list({tuple(row) for row in a}))

0 comments on commit f06831c

Please sign in to comment.