conornally / starbug2

JWST PSF photometry for complex and crowded fields
GNU General Public License v3.0
4 stars 3 forks source link

Overwriting exports #8

Closed conornally closed 1 year ago

conornally commented 1 year ago

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.

conornally commented 1 year ago

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.