Skip to content

Commit

Permalink
Get rid of redundant inncoming degrees check.
Browse files Browse the repository at this point in the history
  • Loading branch information
orenbenkiki committed Aug 8, 2023
1 parent 895ca2d commit 70a517f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ clean-docs:

TODO = todo$()x

pc: $(TODO) history format smells dist pytest docs staged tox ## check everything before commit
pc: $(TODO) ci staged ## check everything before commit

ci: history format smells dist docs tox ## check everything in a CI server
ci: history format smells dist pytest docs ## check everything in a CI server

history: ## check to-be-done version is described in HISTORY.rst
@version=`grep 'current_version =' setup.cfg | sed 's/.* //;s/.dev.*//;'`; \
Expand Down
4 changes: 0 additions & 4 deletions metacells/tools/knn_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ def store_matrix(matrix: ut.CompressedMatrix, name: str, when: bool) -> None: #
pruned_ranks = _prune_ranks(balanced_ranks, k, incoming_degree_factor, outgoing_degree_factor)
store_matrix(pruned_ranks, "pruned_ranks", True)

incoming_ranks = ut.nnz_per(pruned_ranks, per="column")
min_incoming_degree = np.min(incoming_ranks)
ut.log_calc("min_incoming_degree", min_incoming_degree)

outgoing_ranks = ut.nnz_per(pruned_ranks, per="row")
min_outgoing_degree = np.min(outgoing_ranks)
ut.log_calc("min_outgoing_degree", min_outgoing_degree)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
anndata
cvxpy
fastcluster
importlib-metadata
Expand Down

0 comments on commit 70a517f

Please sign in to comment.