10.9. copro.utils.initiate_setup¶
- copro.utils.initiate_setup(settings_file, verbose=None)[source]¶
Initiates the model set-up. It parses the cfg-file, creates an output folder, copies the cfg-file to the output folder, and, if specified, downloads conflict data.
- Parameters
settings_file (str) – path to settings-file (cfg-file).
verbose (bool, optional) – whether model is verbose or not, e.g. click.echos DEBUG output or not. If None, then the setting in cfg-file counts. Otherwise verbose can be set directly to function which superseded the cfg-file. Defaults to None.
- Returns
parsed model configuration. out_dir_list: list with paths to output folders; first main output folder, then reference run folder, then (multiple) folders for projection runs. root_dir: path to location of cfg-file.
- Return type
ConfigParser-object