smerckel / dbdreader

A reader for binary data files created by Slocum ocean gliders (AUVs)
GNU General Public License v3.0
16 stars 14 forks source link

Return missing cache file data with DbdError #13

Closed roje-bodc closed 1 year ago

roje-bodc commented 1 year ago

Hi @smerckel ,

Currently at the BODC we are working on improving our Slocum glider processing workflow, and part of this is improving the handling of missing cache files. Being able to easily access the list of missing cache files and their dependant files when an error is raised would be very useful.

This pull request is my proposed change for this, which is just a small addition to the DbdError class that allows the return of a data object with the raised error. The main reason was so that we could access the 'problems' dict that is generated within the __update_dbd_inventory() method.

I'm happy to hear any other suggestions if you aren't 100% happy with this.

Cheers, Rob BODC