From 8bc648797bbeb827901eb0b45aa1cfae0632bf36 Mon Sep 17 00:00:00 2001 From: nzywucka Date: Mon, 26 Feb 2024 14:43:48 +0100 Subject: [PATCH] If statement for self.laser = self.parse_laser_info() added --- ctapipe_io_magic/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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