Skip to content

Commit

Permalink
Fixed regression in DistanceMatrix.partition()
Browse files Browse the repository at this point in the history
Fixes fotisj#12
  • Loading branch information
thvitt committed Jun 6, 2017
1 parent 20f3900 commit 917ca95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delta/deltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def _remove_duplicates(self):
Returns a DistanceMatrix that has only the upper right triangle filled,
ie contains only the unique meaningful values.
"""
return DistanceMatrix(self.where(np.triu(np.ones(self.shape),
return DistanceMatrix(self.where(np.triu(np.ones(self.shape, dtype=bool),
k=1)),
copy_from=self)

Expand Down

0 comments on commit 917ca95

Please sign in to comment.