From 08a39ef8a06c15ed93ee7d488be0e3ae9d7e87e0 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 14 Nov 2023 10:42:48 +0100 Subject: [PATCH] Always fill tels_with_trigger --- src/ctapipe_io_lst/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ctapipe_io_lst/__init__.py b/src/ctapipe_io_lst/__init__.py index c9dac19f..b77dc64a 100644 --- a/src/ctapipe_io_lst/__init__.py +++ b/src/ctapipe_io_lst/__init__.py @@ -630,9 +630,7 @@ def _generator(self): else: self.fill_r0r1_container(array_event, zfits_event) self.fill_lst_event_container(array_event, zfits_event) - - if self.trigger_information: - self.fill_trigger_info(array_event) + self.fill_trigger_info(array_event) self.fill_mon_container(array_event, zfits_event) @@ -878,8 +876,12 @@ def fill_trigger_info(self, array_event): tel_id = self.tel_id trigger = array_event.trigger - trigger.time = self.time_calculator(tel_id, array_event) trigger.tels_with_trigger = [tel_id] + + if not self.trigger_information: + return + + trigger.time = self.time_calculator(tel_id, array_event) trigger.tel[tel_id].time = trigger.time lst = array_event.lst.tel[tel_id]