Commit 474ece65 authored by Alessio Berti's avatar Alessio Berti
Browse files

Fixed call to retrieve the camera geometry (now global to event source and not...

Fixed call to retrieve the camera geometry (now global to event source and not attached to each event).
parent 992d3ae8
......@@ -232,7 +232,7 @@ def process_dataset_mc(input_mask, output_name, image_cleaning_settings):
# Pixel arrival time map
event_pulse_time = event.dl1.tel[tel_id].pulse_time
# Camera geometry
camera = event.inst.subarray.tel[tel_id].camera
camera = source.subarray.tel[tel_id].camera
# ---------------------------
# Computing the cleaning mask
......@@ -370,7 +370,7 @@ def process_dataset_data(input_mask, tel_id, output_name, image_cleaning_setting
# Pixel arrival time map
event_pulse_time = event.dl1.tel[tel_id].pulse_time
# Camera geometry
camera = event.inst.subarray.tel[tel_id].camera
camera = source.subarray.tel[tel_id].camera
# ---------------------------
# Computing the cleaning mask
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment