Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ievgen Vovk
ctapipe_io_magic
Commits
69ef5df6
Commit
69ef5df6
authored
Apr 15, 2019
by
Ievgen Vovk
Browse files
Adapted tests to the new ctapipe version.
parent
b09ccdcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/tests/test_magic_event_source.py
View file @
69ef5df6
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*_'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment