confirm_config_file#
- skysim.__main__.confirm_config_file(input_config_path)[source]#
Pre-validate the existence of a config file.
- Parameters:
- input_config_path
str Argument passed on command line.
- input_config_path
- Returns:
pathlib.PathGiven config file path (if any).
- Raises:
ValueErrorRaised if - Path given does not exist. - Path leads to a non-file object. - Path does not have a “.toml” extension.