Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Jun 13, 2018
1 parent 143317c commit 555bac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion graphtools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,7 @@ class Graph(parent_classes[0], parent_classes[1], parent_classes[2]):
# build graph and return
log_debug("Initializing {} with arguments {}".format(
parent_classes,
params))
", ".join(["{}='{}'".format(key, value)
for key, value in params.items()
if key != "data"])))
return Graph(**params)
3 changes: 1 addition & 2 deletions graphtools/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ def build_kernel_to_data(self, Y, knn=None):
knn_tree = NearestNeighbors(knn, algorithm='brute',
n_jobs=-1).fit(self.data_nu)
if len(update_idx) > 0:
log_debug("radius search on {}".format(search_knn,
len(update_idx)))
log_debug("radius search on {}".format(len(update_idx)))
# give up - radius search
dist_new, ind_new = knn_tree.radius_neighbors(
Y[update_idx, :],
Expand Down

0 comments on commit 555bac1

Please sign in to comment.