diff --git a/ctapipe_io_magic/__init__.py b/ctapipe_io_magic/__init__.py index f5e917c..e904f4f 100644 --- a/ctapipe_io_magic/__init__.py +++ b/ctapipe_io_magic/__init__.py @@ -1,4 +1,4 @@ -""" +y""" # Event source for MAGIC calibrated data files. # Requires uproot package (https://github.com/scikit-hep/uproot). """ @@ -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