From a8894be610e9253bbedca7cd22ecc49e09ae8a4d Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 23 Jul 2024 17:59:41 +0200 Subject: [PATCH] Add some comments --- src/ctapipe_io_lst/pixels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ctapipe_io_lst/pixels.py b/src/ctapipe_io_lst/pixels.py index f2e23101..41d2d00a 100644 --- a/src/ctapipe_io_lst/pixels.py +++ b/src/ctapipe_io_lst/pixels.py @@ -25,8 +25,11 @@ def get_pixel_table_from_camera_config(config): n_pixels = len(pixel_id_map) pixel_index = np.arange(n_pixels) + # the pixel data arrives in module groups, the module id of each group + # is in module_id_map. Repeat to have the module_id of each pixel module_id = np.repeat(module_id_map, N_PIXELS_MODULE) + # pixels inside one module are ordered by module_pixel_index module_pixel_index = np.tile(np.arange(N_PIXELS_MODULE), n_modules) hardware_pixel_id = module_id * N_PIXELS_MODULE + module_pixel_index