Skip to content

Commit

Permalink
Always fill tels_with_trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Nov 14, 2023
1 parent 8f5cffd commit 08a39ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Check warning on line 882 in src/ctapipe_io_lst/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/__init__.py#L882

Added line #L882 was not covered by tests

trigger.time = self.time_calculator(tel_id, array_event)
trigger.tel[tel_id].time = trigger.time

lst = array_event.lst.tel[tel_id]
Expand Down

0 comments on commit 08a39ef

Please sign in to comment.