Skip to content

Commit

Permalink
fix dtypes for clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
Shotgunosine committed Jan 8, 2024
1 parent 9764d02 commit 7c5df8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contarg/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def repdist_tree(X, X_for_connected_components, connectivity,
if return_distance:
distances = np.empty(n_nodes - n_samples)

not_visited = np.empty(n_nodes, dtype=np.int8, order="C")
not_visited = np.empty(n_nodes, dtype=bool, order="C")

# recursive merge loop
for k in range(n_samples, n_nodes):
Expand Down

0 comments on commit 7c5df8d

Please sign in to comment.