Commit 69ef5df6 authored by Ievgen Vovk's avatar Ievgen Vovk
Browse files

Adapted tests to the new ctapipe version.

parent b09ccdcd
import copy
import pytest
from ctapipe_io_magic import MAGICEventSource
from ctapipe.io.eventsourcefactory import EventSourceFactory
from ctapipe.io.eventseeker import EventSeeker
from ctapipe.utils import get_dataset_path
......@@ -80,15 +79,6 @@ def test_geom():
assert event.inst.subarray.tels[2].camera.pix_x.size == 1039
def test_eventsourcefactory():
dataset = get_dataset_path("20131004_M1_05029747.003_Y_MagicCrab-W0.40+035.root")
dataset = dataset.replace('_M1_', '_M*_')
source = EventSourceFactory.produce(input_url=dataset)
assert source.__class__.__name__ == "MAGICEventSource"
assert source.input_url == dataset.replace('_M*_', '_M1_')
def test_eventseeker():
dataset = get_dataset_path("20131004_M1_05029747.003_Y_MagicCrab-W0.40+035.root")
dataset = dataset.replace('_M1_', '_M*_')
......
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