Closed Sunmish closed 1 year ago
Thanks for catching @Sunmish - this is a nasty little bug!
I'm happy to put your suggested change in. Although some evil part of me wants to say "we don't support files that don't end in '.fits'" hah!
The bug bit me so I thought I'd bring it up! For reference, the SPAM pipeline has a default ".FITS" output naming scheme.
Images without ".fits" extension in the filename will be overwritten regardless of input suffix.
I would suggest replacing:
with something a little safer like:
or something nicer to ensure non-standard extensions (e.g. ".FITS") are respected.