Skip to content

Commit

Permalink
Force download of site names from astropy in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Oct 13, 2021
1 parent 3d88460 commit 8d2f8bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyuvdata/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pytest
from astropy.utils import iers
from astropy.time import Time
from astropy.coordinates import EarthLocation
import numpy as np

from pyuvdata.data import DATA_PATH
Expand Down Expand Up @@ -40,6 +41,9 @@ def setup_and_teardown_package():
except (Exception):
iers.conf.auto_max_age = None

# Also ensure that we're downloading the site data from astropy
EarthLocation._get_site_registry(force_download=True)

yield

iers.conf.auto_max_age = 30
Expand Down

0 comments on commit 8d2f8bd

Please sign in to comment.