Skip to content
Snippets Groups Projects
Commit 87992415 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

SSB-46: Download from a mirror if fails

parent a7f1f09e
No related branches found
No related tags found
1 merge request!105Holography ssb46
......@@ -8,7 +8,11 @@ from astropy.utils.data import download_file
from astropy.utils import iers
from astropy.time import Time
iers.IERS.iers_table = iers.IERS_A.open(download_file(iers.IERS_A_URL, cache=True))
try:
iers.IERS.iers_table = iers.IERS_A.open(download_file(iers.IERS_A_URL, cache=True))
except:
iers.IERS.iers_table = iers.IERS_A.open(download_file(iers.IERS_A_URL_MIRROR, cache=True))
def mjd_to_astropy_time(mjd_time_seconds) -> Time:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment