Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctapipe_io_magic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ievgen Vovk
ctapipe_io_magic
Commits
0825d636
Commit
0825d636
authored
6 years ago
by
Ievgen Vovk
Browse files
Options
Downloads
Patches
Plain Diff
Fixed compatibility issues with the new ctapipe version.
parent
4ea21038
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ctapipe_io_magic/__init__.py
+2
-2
2 additions, 2 deletions
ctapipe_io_magic/__init__.py
with
2 additions
and
2 deletions
ctapipe_io_magic/__init__.py
+
2
−
2
View file @
0825d636
...
@@ -59,7 +59,7 @@ class MAGICEventSource(EventSource):
...
@@ -59,7 +59,7 @@ class MAGICEventSource(EventSource):
# To overcome this we substitute the input_url with first file matching
# To overcome this we substitute the input_url with first file matching
# the specified file mask.
# the specified file mask.
del
kwargs
[
'
input_url
'
]
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
# Retrieving the list of run numbers corresponding to the data files
run_numbers
=
list
(
map
(
self
.
_get_run_number
,
file_list
))
run_numbers
=
list
(
map
(
self
.
_get_run_number
,
file_list
))
...
@@ -77,7 +77,7 @@ class MAGICEventSource(EventSource):
...
@@ -77,7 +77,7 @@ class MAGICEventSource(EventSource):
# MAGIC telescope description
# MAGIC telescope description
optics
=
OpticsDescription
.
from_name
(
'
MAGIC
'
)
optics
=
OpticsDescription
.
from_name
(
'
MAGIC
'
)
geom
=
CameraGeometry
.
from_name
(
'
MAGICCam
'
)
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_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
)
self
.
magic_subarray
=
SubarrayDescription
(
'
MAGIC
'
,
self
.
magic_tel_positions
,
self
.
magic_tel_descriptions
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment