Skip to content

Commit

Permalink
Fix adjoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl committed Aug 9, 2024
1 parent c3af158 commit d55a310
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_adjoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from .helpers import (
make_diagonal_operator,
make_identity_operator,
make_operators,
make_tridiagonal_operator,
tree_allclose,
Expand All @@ -16,7 +17,10 @@
@pytest.mark.parametrize("make_operator", make_operators)
@pytest.mark.parametrize("dtype", (jnp.float64, jnp.complex128))
def test_adjoint(make_operator, dtype, getkey):
if make_operator is make_diagonal_operator:
if (
make_operator is make_diagonal_operator
or make_operator is make_identity_operator
):
matrix = jnp.eye(4, dtype=dtype)
tags = lx.diagonal_tag
in_size = out_size = 4
Expand Down

0 comments on commit d55a310

Please sign in to comment.