Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed Apr 23, 2024
1 parent 08f1c90 commit 6074913
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,11 @@ def test_write_adata_key(self, adata: AnnData):
np.testing.assert_array_equal(adata.obsp["foo"].toarray(), vk.transition_matrix.toarray())

@pytest.mark.parametrize("model", ["deterministic", "stochastic"])
def test_vk_row_normalized(self, adata: AnnData, model: str):
def test_vk_row_normalized(self, adata: AnnData, model: Literal["deterministic", "stochastic", "monte_carlo"]):
if model == "stochastic":
pytest.importorskip("jax")
pytest.importorskip("jaxlib")
vk = VelocityKernel(adata)
vk.compute_transition_matrix(model="stochastic", softmax_scale=4)
vk.compute_transition_matrix(model=model, softmax_scale=4)

np.testing.assert_allclose(vk.transition_matrix.sum(1), 1, rtol=_rtol)

Expand Down

0 comments on commit 6074913

Please sign in to comment.