LCOGT / snex2

Repo for the updated Supernova Exchange, built with the TOM Toolkit and used by the Global Supernova Project collaboration
https://test.supernova.exchange
GNU General Public License v3.0
0 stars 5 forks source link

Triplets features bug fix - Allowing fits files to be f-packed #23

Closed gterreran closed 4 months ago

gterreran commented 4 months ago

If a fits file is f-packed (i.e. ends with .fz), it is not possible to know before trying to access it. Therefore if the script was trying to plot the fits using the name reported in the database, and the file was f-packed, SNEX2 would have returned a Server Error (500).

Not, before returning the fits file name, the script checks if it exists, and if it doesn't the script assumes that the .fz version exists.

In addition, now a galaxy will be shown in the page only if a triple for that galaxy exists.