Skip to content

Commit

Permalink
Workaround for #344
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendt Wohlberg committed Sep 21, 2022
1 parent 4bf71e3 commit a217ee6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scico/test/linop/test_radon_svmbir.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
BIG_INPUT_OFFSET_RANGE = (0, 3)
SMALL_INPUT_OFFSET_RANGE = (0, 0.1)

device = jax.devices()[0]


def make_im(Nx, Ny, is_3d=True):
x, y = snp.meshgrid(snp.linspace(-1, 1, Nx), snp.linspace(-1, 1, Ny))
Expand Down Expand Up @@ -147,6 +149,7 @@ def test_adjoint(
adjoint_test(A)


@pytest.mark.skipif(device.platform != "cpu", reason="test hangs on gpu")
@pytest.mark.parametrize(
"Nx, Ny, num_angles, num_channels, dist_source_detector, magnification", (SMALL_INPUT,)
)
Expand Down Expand Up @@ -191,6 +194,7 @@ def test_prox(
prox_test(v, f, f.prox, alpha=0.25, rtol=5e-4)


@pytest.mark.skipif(device.platform != "cpu", reason="test hangs on gpu")
@pytest.mark.parametrize(
"Nx, Ny, num_angles, num_channels, dist_source_detector, magnification", (SMALL_INPUT,)
)
Expand Down

0 comments on commit a217ee6

Please sign in to comment.