Skip to content

Commit

Permalink
move definition where telescope_id is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancaCassol committed Aug 30, 2023
1 parent fcaf8e1 commit 7ce6604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lstchain/reco/r0_to_dl1.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ def r0_to_dl1(
)

if not is_simu:
calibration_mon = source.r0_r1_calibrator.mon_data.tel[telescope_id].calibration

# Pulse extractor for muon ring analysis. Same parameters (window_width and _shift) as the one for showers, but
# using GlobalPeakWindowSum, since the signal for the rings is expected to be very isochronous
Expand Down Expand Up @@ -613,6 +612,9 @@ def r0_to_dl1(
)

if not is_simu:

calibration_mon = source.r0_r1_calibrator.mon_data.tel[telescope_id].calibration

dl1_container.ucts_time = 0
# convert Time to unix timestamp in (UTC) to keep compatibility
# with older lstchain
Expand Down

0 comments on commit 7ce6604

Please sign in to comment.