lephare.runner
Classes
Runner is the base class of the classes Filter, Sedtolib, MagGal, and Zphota, |
Module Contents
- class Runner(config_keys=None, config_file=None, config_keymap=None, **kwargs)[source]
Runner is the base class of the classes Filter, Sedtolib, MagGal, and Zphota, responsible to drive the execution of the filter, sedtolib, mag_gal, and zphota scripts, respectively.
Configuration of the classes uses either a configuration file, a dictionary of key names and corresponding keyword objects, or set of key/values passed as arguments to the constructor
The order of precedence is : key/values pairs overwrite config_keymap entries, which themselves overwrite config_file entries.
- Parameters:
config_keys (list or None, optional) – List of all admissible configuration keys, provided by the inheriting classes
config_file (string or None, optional) – Path to a configuration file in LePHARE .para format
config_keymap (dict or None, optional) – Dictionary of configuration values provided as ‘key/keyword object’ pairs.
- parse_config_file(filename)[source]
Load config file and set config values.
- Parameters:
filename (string) – Path to config file