handle_overwrite#
- skysim.__main__.handle_overwrite(plot_settings, options)[source]#
Check if files will be overwritten and take action based on cli flags (–verbose and –overwrite).
- Parameters:
- plot_settings
PlotSettings Plotting configuration, passed to
check_for_overwrite.- options
argparse.Namespace Parsed CLI options.
- plot_settings
- Raises:
ValueErrorRaised if an overwrite would happen but the –overwrite flag was not passed.