Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #759

Merged
merged 10 commits into from
Oct 30, 2024
Prev Previous commit
Next Next commit
fix, pin version
Arina Danilina committed Oct 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 98a8597935e66588e38c4bdabf8379805c84e8c5
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ dependencies = [
"numpy>=1.20.0",
"scipy>=1.7.0",
"pandas>=2.0.1",
"networkx>=2.6.3",
"networkx>=3.2",
# https://github.com/scverse/scanpy/issues/2411
"matplotlib>=3.5.0",
"anndata>=0.9.1",
2 changes: 1 addition & 1 deletion src/moscot/datasets.py
Original file line number Diff line number Diff line change
@@ -565,7 +565,7 @@ def _get_random_trees(
assert len(leaf_names[i]) == n_leaves
trees = []
for tree_idx in range(n_trees):
G = nx.random_labeled_tree(n_initial_nodes, seed=seed, create_using=nx.DiGraph)
G = nx.random_labeled_tree(n_initial_nodes, seed=seed)
leaves = [x for x in G.nodes() if G.out_degree(x) == 0 and G.in_degree(x) == 1]
inner_nodes = list(set(G.nodes()) - set(leaves))
leaves_updated = leaves.copy()