Skip to content

Commit 402a0a8

Browse files
Merge pull request #55 from theislab/fix/toarray
Fix Sparse ".A" Not Found
2 parents 8ea77ca + aee3c28 commit 402a0a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/transforms/test_add_edge_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def test_add_edge_index():
7878
adata = tf(adata)
7979
assert torch.equal(adata.uns["edge_index"], edge_index_gt)
8080
assert torch.allclose(adata.uns["edge_weight"], edge_weight_gt)
81-
assert np.allclose(adata.obsp["pred_distances"].A, adata.obsp["gt_distances"].A)
81+
assert np.allclose(adata.obsp["pred_distances"].toarray(), adata.obsp["gt_distances"].toarray())

0 commit comments

Comments
 (0)