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
5d2797c8
Commit
5d2797c8
authored
Apr 13, 2021
by
Alessio Berti
Browse files
Use CameraDescription instead of CameraGeometry, as required by TelescopeDescription.
parent
0d5ee8a2
Pipeline
#98254
failed with stage
in 9 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
5d2797c8
...
@@ -33,7 +33,7 @@ from ctapipe.containers import PedestalContainer
...
@@ -33,7 +33,7 @@ from ctapipe.containers import PedestalContainer
from
ctapipe.instrument
import
TelescopeDescription
from
ctapipe.instrument
import
TelescopeDescription
from
ctapipe.instrument
import
SubarrayDescription
from
ctapipe.instrument
import
SubarrayDescription
from
ctapipe.instrument
import
OpticsDescription
from
ctapipe.instrument
import
OpticsDescription
from
ctapipe.instrument
import
Camera
Geometry
from
ctapipe.instrument
import
Camera
Description
__all__
=
[
'MAGICEventSource'
]
__all__
=
[
'MAGICEventSource'
]
...
@@ -55,9 +55,10 @@ MAGIC_TEL_POSITIONS = {
...
@@ -55,9 +55,10 @@ MAGIC_TEL_POSITIONS = {
# MAGIC telescope description
# MAGIC telescope description
OPTICS
=
OpticsDescription
.
from_name
(
'MAGIC'
)
OPTICS
=
OpticsDescription
.
from_name
(
'MAGIC'
)
GEOM
=
CameraGeometry
.
from_name
(
'MAGICCam'
)
MAGICCAM
=
CameraDescription
.
from_name
(
"MAGICCam"
)
GEOM
=
MAGICCAM
.
geometry
MAGIC_TEL_DESCRIPTION
=
TelescopeDescription
(
MAGIC_TEL_DESCRIPTION
=
TelescopeDescription
(
name
=
'MAGIC'
,
tel_type
=
'MAGIC'
,
optics
=
OPTICS
,
camera
=
GEO
M
)
name
=
'MAGIC'
,
tel_type
=
'MAGIC'
,
optics
=
OPTICS
,
camera
=
MAGICCA
M
)
MAGIC_TEL_DESCRIPTIONS
=
{
1
:
MAGIC_TEL_DESCRIPTION
,
2
:
MAGIC_TEL_DESCRIPTION
}
MAGIC_TEL_DESCRIPTIONS
=
{
1
:
MAGIC_TEL_DESCRIPTION
,
2
:
MAGIC_TEL_DESCRIPTION
}
# trigger patterns:
# trigger patterns:
...
...
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