-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Sometimes the compressed files get corrupted for some reason. Currently if I do a big multi_dbd.get and one of these files is in there, it will get quite a ways through the translation and then just say "Unexpected reading error"
dbd = dbdreader.MultiDBD(pattern=f'./*.[d|e]cd',
cacheDir='.')
data = list(dbd.get_sync('sci_water_temp', 'sci_water_cond', 'sci_water_pressure'))
You can find a dataset that does this at https://cproof.uvic.ca/temp/bad.tar In this case, it is 02380108.* that is corrupt, and if you ignore that file, then dbdreader works fine.
it would be nice if these corrupted files were ignored (and maybe logged). Or at the very least the error message said what the problem file was.
I poked around some, and I couldn't quite parse when this was happening (sure in decompress.c), but it wasn't clear when the file was read and tripping up on this, and if it would be easy to ignore.
Thanks!