Example #1
0
def test_camdemo():
    sys.argv = ['camera_demo']
    tool = CameraDemo()
    tool.num_events = 10
    tool.cleanframes = 2
    tool.display = False
    tool.run(argv=[])
Example #2
0
def test_camdemo():
    from ctapipe.tools.camdemo import CameraDemo
    sys.argv = ['camera_demo']
    tool = CameraDemo()
    tool.num_events = 10
    tool.cleanframes = 2
    tool.display = False
    tool.run(argv=[])
Example #3
0
def test_camdemo():
    from ctapipe.tools.camdemo import CameraDemo
    sys.argv = ['camera_demo']
    tool = CameraDemo()
    tool.num_events = 10
    tool.cleanframes = 2
    tool.display = False
    tool.run(argv=[])

    with pytest.raises(SystemExit):
        tool.run(['--help-all'])
Example #4
0
def test_camdemo():
    from ctapipe.tools.camdemo import CameraDemo
    sys.argv = ['camera_demo']
    tool = CameraDemo()
    tool.num_events = 10
    tool.cleanframes = 2
    tool.display = False
    tool.run(argv=[])

    with pytest.raises(SystemExit):
        tool.run(['--help-all'])
Example #5
0
def test_camdemo():
    tool = CameraDemo()
    tool.num_events = 10
    tool.cleanframes = 2
    tool.display = False
    tool.run(argv=[])