askap-vast / vast-pipeline

This repository holds the code of the Radio Transient detection pipeline for the VAST project.
https://vast-survey.org/vast-pipeline/
MIT License
7 stars 3 forks source link

Cutouts sometimes don't load on source detail page #587

Closed marxide closed 2 years ago

marxide commented 2 years ago

The cutout FITS images are loaded with an API endpoint that accepts a measurement name, but the measurement name is not a unique attribute. Some measurements have duplicate names which cause the cutout code to throw an error as it only expects one result.

https://github.com/askap-vast/vast-pipeline/blob/0c034a96eb253923f1eeeb32c7ffd8ab2849ab0f/vast_pipeline/views.py#L1776-L1781