Skip to content

Commit

Permalink
Fix tqdm postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
asistradition committed Feb 18, 2024
1 parent 5f806c7 commit 3a39265
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inferelator_velocity/utils/noise2self.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def knn_noise2self(

# Update the progress bar
tqdm_pbar.postfix = f"{pc} PCs Neighbor Search"
tqdm_pbar.update(0)

# Search through the neighbors space
mses[i, :] = _search_k(
Expand Down Expand Up @@ -343,6 +344,7 @@ def _search_k(

if hasattr(pbar, 'postfix'):
pbar.postfix = _postfix + f" ({k[i]} N)"
pbar.update(0)

# Extract k non-zero neighbors from the graph
k_graph = local_optimal_knn(
Expand Down

0 comments on commit 3a39265

Please sign in to comment.