Skip to content

Commit

Permalink
(fix) lop1p tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Feb 27, 2024
1 parent e83dac5 commit b72e616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scanpy/tests/test_preprocessing_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def test_log1p(adata: AnnData, adata_dist: AnnData):
result = materialize_as_ndarray(adata_dist.X)
log1p(adata)
assert result.shape == adata.shape
npt.assert_allclose(result, adata.X)
npt.assert_allclose(
result.toarray() if isinstance(result, sp.spmatrix) else result, adata.X
)


def test_normalize_per_cell(
Expand Down

0 comments on commit b72e616

Please sign in to comment.