Skip to content

Commit 5c07eaa

Browse files
committed
Add comments
1 parent ef736a6 commit 5c07eaa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ctapipe_io_lst/calibration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ def apply_drs4_corrections(self, event: LSTArrayEventContainer):
236236
if r1.waveform is None:
237237
r1.waveform = event.r0.tel[tel_id].waveform
238238

239+
# we always correct the pedestal, as in normal operations, EVB corrects
240+
# it online, but we do a relative update with the nightly DRS4 file
239241
correct_pedestal = self.apply_drs4_pedestal_correction
242+
243+
# apply timelapse and spike correction only if not yet done by EVB
240244
correct_timelapse = (
241245
self.apply_timelapse_correction
242246
and EVBPreprocessingFlag.DELTA_T_CORRECTION not in preprocessing

0 commit comments

Comments
 (0)