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
8 stars 3 forks source link

Add image mode fails when first attempt fails with no file found #578

Closed ajstewart closed 2 years ago

ajstewart commented 3 years ago

If a user accidentally enters a wrong path or image name then the pipeline throws the expected error. However, if the user corrects the problem and attempts to add the image again the pipeline will fail. This is because in the original add attempt the creation of the backup output files was never triggered.

This is because the backups are only created from a successful run, but occurs after the config validation: https://github.com/askap-vast/vast-pipeline/blob/7bab8fd7d854560c4e9da7d36d4d07d6134ac164/vast_pipeline/management/commands/runpipeline.py#L243-L246