ipta / pulsar-clock-corrections

Distribution point and tools for observatory clock corrections for pulsar timing.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Fix BIPM file creation/logging #11

Closed dlakaplan closed 9 months ago

dlakaplan commented 9 months ago

Addresses #10:

I don't understand why the other BIPM files get log entries like:

2023-12-01 15:04:36.856 - Failed to download: HTTP Error 404: Not Found

when running:

python ./update_clock_corrections.py --file tai2tt_bipm2021.clk --no-respect-interval --gh-pages ./gh-pages

but that is a separate issue. At least when I run that this does not throw an exception.

dlakaplan commented 9 months ago

There was also an issue I don't understand where the lambda to update the file was trying to download the wrong one. So I would try to update 2021, but it would start trying to download 1992 and throw an exception because the URL was wrong (that is a separate issue). I changed the lambda to functools.partial and I think it works correctly now.

dlakaplan commented 9 months ago

Looks like the tempo2 files were updated on 2023-11-14. So one could use them or the ones here (they seem the same).