Skip to content

Commit 6576157

Browse files
authored
Merge pull request #246 from cta-observatory/apply_baseline_allways
Do not check if EVB already processed baseline, we do relative corrections
2 parents d9c65f6 + 5c07eaa commit 6576157

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ctapipe_io_lst/calibration.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +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-
correct_pedestal = (
240-
self.apply_drs4_pedestal_correction
241-
and EVBPreprocessingFlag.BASELINE_SUBTRACTION not in preprocessing
242-
)
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
241+
correct_pedestal = self.apply_drs4_pedestal_correction
242+
243+
# apply timelapse and spike correction only if not yet done by EVB
243244
correct_timelapse = (
244245
self.apply_timelapse_correction
245246
and EVBPreprocessingFlag.DELTA_T_CORRECTION not in preprocessing

0 commit comments

Comments
 (0)