Skip to content

Commit

Permalink
Merge pull request #55 from theislab/fix/toarray
Browse files Browse the repository at this point in the history
Fix Sparse ".A" Not Found
  • Loading branch information
selmanozleyen authored Jul 3, 2024
2 parents 8ea77ca + aee3c28 commit 402a0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/transforms/test_add_edge_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_add_edge_index():
adata = tf(adata)
assert torch.equal(adata.uns["edge_index"], edge_index_gt)
assert torch.allclose(adata.uns["edge_weight"], edge_weight_gt)
assert np.allclose(adata.obsp["pred_distances"].A, adata.obsp["gt_distances"].A)
assert np.allclose(adata.obsp["pred_distances"].toarray(), adata.obsp["gt_distances"].toarray())

0 comments on commit 402a0a8

Please sign in to comment.