guynir42 / AstroRetriever

A package used for downloading and processing images from various astronomical surveys
Other
4 stars 2 forks source link

What to do when data is not found on disk #69

Open guynir42 opened 1 year ago

guynir42 commented 1 year ago

Suppose we load a RawPhotometry or other data from the DB. Then the file is missing or the key is not in the file. What should the code do...? There are several options: 1) throw an exception. 2) re-download and then attach the data to that row in the DB 3) delete that row in the DB and then save or not save the re-downloaded data based on input parameters. 4) ignore it and let the downstream code throw when it cannot find the data.