lsst.sims.ocs.setup.prog_config module¶
-
lsst.sims.ocs.setup.prog_config.
apply_file_config
(config, options)[source]¶ Apply configuration file values to the command-line options.
Parameters: - config (configparser.ConfigParser) – The configuration file instance.
- options (argparse.Namespace) – The command-line options instance.
-
lsst.sims.ocs.setup.prog_config.
read_file_config
(conf_file=None, conf_dir=None)[source]¶ Read in a configuration file.
Parameters: - conf_file (str, optional) – The name of the configuration file. Default is opsim4.
- conf_dir (str, optional) – The directory location of the configuration file. Default is $HOME/.config
-
lsst.sims.ocs.setup.prog_config.
write_file_config
(options, conf_dir=None)[source]¶ Write a configuration file from the given options.
Parameters: - options (argparse.Namespace) – The options from ArgumentParser
- conf_dir (str, optional) – A directory for saving the configuration file in. Default is $HOME/.config/opsim4.