Skip to content

Commit

Permalink
Only create EventTimeCalculator in case of old data
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Nov 13, 2023
1 parent e0fccfb commit d813e9d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,14 @@ def __init__(self, input_url=None, **kwargs):
self.r0_r1_calibrator = LSTR0Corrections(
subarray=self._subarray, parent=self
)
self.time_calculator = EventTimeCalculator(
subarray=self.subarray,
run_id=self.local_run_id,
expected_modules_id=self.module_id_map,
parent=self,
)
self.time_calculator = None
if not self.cta_r1:
self.time_calculator = EventTimeCalculator(
subarray=self.subarray,
run_id=self.local_run_id,
expected_modules_id=self.module_id_map,
parent=self,
)
self.pointing_source = PointingSource(subarray=self.subarray, parent=self)

target_info = {}
Expand Down

0 comments on commit d813e9d

Please sign in to comment.