We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea77ca commit aee3c28Copy full SHA for aee3c28
tests/transforms/test_add_edge_index.py
@@ -78,4 +78,4 @@ def test_add_edge_index():
78
adata = tf(adata)
79
assert torch.equal(adata.uns["edge_index"], edge_index_gt)
80
assert torch.allclose(adata.uns["edge_weight"], edge_weight_gt)
81
- 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 commit comments