Commit 347814f6 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Skip pyconrad test not only on CI but always if pyconrad is not installed

parent 3c5e32f1
......@@ -88,9 +88,11 @@ def test_projection_backward(with_texture, with_backward):
loss.backward()
@pytest.mark.skipif('CI' in os.environ, reason="No conrad config on CI")
@pytest.mark.parametrize('with_backward', ('with_backward', False))
def test_conrad_config(with_backward, with_texture=True):
import pytest
pytest.importorskip("pyconrad")
projector = pyronn_torch.ConeBeamProjector.from_conrad_config()
volume = projector.new_volume_tensor(requires_grad=True if with_backward else False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment