Skip to content

Commit

Permalink
If statement for self.laser = self.parse_laser_info() added
Browse files Browse the repository at this point in the history
  • Loading branch information
nzywucka committed Feb 26, 2024
1 parent 74d5c62 commit 8bc6487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ctapipe_io_magic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
y"""
# Event source for MAGIC calibrated data files.
# Requires uproot package (https://github.com/scikit-hep/uproot).
"""
Expand Down Expand Up @@ -275,7 +275,9 @@ def __init__(self, input_url=None, config=None, parent=None, **kwargs):
self.mars_datalevel = run_info[3][0]

self.metadata = self.parse_metadata_info()
self.laser = self.parse_laser_info()

if not self.is_simulation:
self.laser = self.parse_laser_info()

# Retrieving the data level (so far HARDCODED Sorcerer)
self.datalevel = DataLevel.DL0
Expand Down

0 comments on commit 8bc6487

Please sign in to comment.