update_config

simcado.commands.update_config(config_file, config_dict)[source]

Update a SimCADO configuration dictionary

A configuration file in the SExtractor format:

'PARAMETER    Value    # Comment'

an existing configuration dictionary.

Parameters
config_filestr

the filename of the .config file

Returns
config_dictdict

A dictionary with keys ‘PARAMETER’ and values ‘Value’.

Notes

the values of the dictionary are strings and will have to be converted to the appropriate data type as they are needed.