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_settingsPlotSettings

Plotting configuration, passed to check_for_overwrite.

optionsargparse.Namespace

Parsed CLI options.

Raises:
ValueError

Raised if an overwrite would happen but the –overwrite flag was not passed.