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
0825d636
Commit
0825d636
authored
Apr 15, 2019
by
Ievgen Vovk
Browse files
Fixed compatibility issues with the new ctapipe version.
parent
4ea21038
Changes
1
Show whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
0825d636
...
...
@@ -59,7 +59,7 @@ class MAGICEventSource(EventSource):
# To overcome this we substitute the input_url with first file matching
# the specified file mask.
del
kwargs
[
'input_url'
]
super
().
__init__
(
config
=
config
,
tool
=
tool
,
input_url
=
file_list
[
0
],
**
kwargs
)
super
().
__init__
(
input_url
=
file_list
[
0
],
**
kwargs
)
# Retrieving the list of run numbers corresponding to the data files
run_numbers
=
list
(
map
(
self
.
_get_run_number
,
file_list
))
...
...
@@ -77,7 +77,7 @@ class MAGICEventSource(EventSource):
# MAGIC telescope description
optics
=
OpticsDescription
.
from_name
(
'MAGIC'
)
geom
=
CameraGeometry
.
from_name
(
'MAGICCam'
)
self
.
magic_tel_description
=
TelescopeDescription
(
optics
=
optics
,
camera
=
geom
)
self
.
magic_tel_description
=
TelescopeDescription
(
name
=
'MAGIC'
,
type
=
'MAGIC'
,
optics
=
optics
,
camera
=
geom
)
self
.
magic_tel_descriptions
=
{
1
:
self
.
magic_tel_description
,
2
:
self
.
magic_tel_description
}
self
.
magic_subarray
=
SubarrayDescription
(
'MAGIC'
,
self
.
magic_tel_positions
,
self
.
magic_tel_descriptions
)
...
...
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