magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

check_input_list#

magicctapipe.io.check_input_list(config)[source]#

This function checks if the input telescope list is organized as follows:

  1. All 4 LSTs and 2 MAGICs must be listed

  2. All 4 LSTs must come before the MAGICs

And it raises an exception in case these rules are not satisfied.

Below we give two examples of valid lists:

mc_tel_ids:
    LST-1: 1
    LST-2: 0
    LST-3: 0
    LST-4: 0
    MAGIC-I: 2
    MAGIC-II: 3
mc_tel_ids:
    LST-4: 1
    LST-2: 7
    LST-3: 9
    LST-1: 0
    MAGIC-II: 2
    MAGIC-I: 3

And here one example of an unvalid list:

mc_tel_ids:
    LST-4: 1
    LST-1: 0
    MAGIC-II: 2
    LST-3: 9
    MAGIC-I: 3
Parameters:
configdict

Dictionary imported from the yaml configuration file with information about the telescope IDs.

Raises:
Exception

This function will raise an exception if the input list is not properly organized.