Rightly when exporting products at the end of the run, starbug overwrites any that exist there already.
However if e.g. a source file is loaded in -d global_sources.fits then this will overwrite the original -ap file, thus removing all the old useful single frame source lists.
The exporting should probably happen at the end of the routine, not at the end of the run. Also it should only export if it wasn't a preloaded file.
Moved the exporting of outputs to the end of routines rather than the end of the run, this way it doesn't export a source list if it hasn't generated it itself.
Rightly when exporting products at the end of the run, starbug overwrites any that exist there already. However if e.g. a source file is loaded in -d global_sources.fits then this will overwrite the original -ap file, thus removing all the old useful single frame source lists.
The exporting should probably happen at the end of the routine, not at the end of the run. Also it should only export if it wasn't a preloaded file.