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
05468ad7
Commit
05468ad7
authored
Dec 01, 2021
by
Alessio Berti
Browse files
Do not use MAGIC numbers.
parent
8ac2ab96
Pipeline
#116343
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
05468ad7
...
...
@@ -722,7 +722,7 @@ class MAGICEventSource(EventSource):
data
.
simulation
.
shower
=
SimulatedShowerContainer
(
energy
=
u
.
Quantity
(
event_data
[
'true_energy'
],
u
.
GeV
),
alt
=
Angle
((
np
.
pi
/
2
-
event_data
[
'true_zd'
]),
u
.
rad
),
az
=
Angle
(
-
1
*
(
event_data
[
'true_az'
]
-
np
.
deg2rad
(
180
-
7
)),
u
.
rad
),
az
=
Angle
(
-
1
*
(
event_data
[
'true_az'
]
-
np
.
deg2rad
(
180
-
rot_corsika
.
value
)),
u
.
rad
),
shower_primary_id
=
1
-
event_data
[
'true_shower_primary_id'
],
h_first_int
=
u
.
Quantity
(
event_data
[
'true_h_first_int'
],
u
.
cm
),
core_x
=
u
.
Quantity
((
event_data
[
'true_core_x'
]
*
np
.
cos
(
rot_corsika
)
-
event_data
[
'true_core_y'
]
*
np
.
sin
(
rot_corsika
)),
u
.
cm
),
...
...
Write
Preview
Markdown
is supported
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