Closed ekatef closed 1 year ago
Issue #36 Before the extraction begins, the pbf file should be checked for correctness using its associated hashes. And a useful warning message should appear if the file is corrupted, followed by a re-download of the file....
Nice! Thanks a lot for notifying. Linking this issue to the trouble-shooting post in PyPSA-Earth and closing this issue as a duplicate.
Actually, introducing check of hashes is a very good idea when downloading any dataset... 🙂
@mnm-matin thanks for the amazing package! Usually it works like a charm :)
There is a little usability suggestion. It appears that if data loading has been incomplete, an error message is thrown which is not very meaningful and can easily terrify a user.
Such an issue has been described here. I have also encountered it when running PyPSA-Earth workflow for Japan. It looked like loading has been started, but after a while this enigmatic
OSMPBF.Blob'
error message has appeared (the full listing is bellow).It has been fixed with manual loading
pbf
file, while loading wasn't very fast. So, I assume that the primary reason of the troubles were some issues with the network connections. However, the message made me think first rather about some environment issues than about data ones. I wonder if it would be possible to add a test on loading completeness and add a meaningful error message in case something went wrong. What do you think?Error message