create_imagers

gunagala.imager.create_imagers(config=None)[source]

Parse config and create a corresponding dictionary of Imager objects.

Parses a configuration and creates a dictionary of Imager objects corresponding to the imaging instruments described by that config. The config can be passed to the function as a dictionary object, otherwise the config will be read from the gunagala/data/performance.yaml and, if it exists, the performance_local.yaml file.

Parameters:
config : dict, optional

a dictionary containing the performance data configuration. If not specified load_config() will be used to attempt to load a performance.yaml and/or performance_local.yaml file and use the resulting config.

Returns:
imagers: dict

dictionary of Imager objects.