Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jul 23, 2024
1 parent de2966d commit a8894be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ctapipe_io_lst/pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def get_pixel_table_from_camera_config(config):
n_pixels = len(pixel_id_map)

Check warning on line 25 in src/ctapipe_io_lst/pixels.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/pixels.py#L24-L25

Added lines #L24 - L25 were not covered by tests

pixel_index = np.arange(n_pixels)

Check warning on line 27 in src/ctapipe_io_lst/pixels.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/pixels.py#L27

Added line #L27 was not covered by tests
# 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)

Check warning on line 30 in src/ctapipe_io_lst/pixels.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/pixels.py#L30

Added line #L30 was not covered by tests

# 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

Check warning on line 34 in src/ctapipe_io_lst/pixels.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/pixels.py#L33-L34

Added lines #L33 - L34 were not covered by tests

Expand Down

0 comments on commit a8894be

Please sign in to comment.