Resolve RAP-304
Aims to resolve the clash between automatic skymodel download and restarting a run. The overwrite
argument of miscellaneous.download_skymodel
is now exposed through the parset option download_overwrite_skymodel
and the following logic is applied:
- If
input_skymodel
is not set in the parset, anddownload_initial_skymodel
is set to True, a skymodel will be downloaded andapparent_skymodel
will be set toNone
, such that the latter is not accidentally used later on. - If
input_skymodel
is set in the parset anddownload_initial_skymodel
is set to True, the user-supplied model takes priority and one will not be downloaded - If situation 2, but
download_overwrite_skymodel
is also set to True then the user-specified skymodel is overwritten. - If
input_skymodel
is set, but does not exist, and no download is requested, it will warn the user and exit.
Edited by Frits Sweijen