Symlink hip_main.dat.gz so tests always work

This commit is contained in:
Brandon Rhodes 2019-07-21 14:19:00 -04:00
parent 807a67b200
commit 92ea3f03ba
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -19,7 +19,6 @@ MANIFEST
MPCORB.DAT
Untitled*.ipynb
build
hip_main.dat.gz
htmlcov/
stations.txt
tmp*.py

1
hip_main.dat.gz Symbolic link
View File

@ -0,0 +1 @@
ci/hip_main.dat.gz

View File

@ -3,7 +3,7 @@ from skyfield.data.hipparcos import load_dataframe
def test_dataframe():
ts = api.load.timescale(builtin=True)
with api.load.open('ci/hip_main.dat.gz') as f:
with api.load.open('hip_main.dat.gz') as f:
df = load_dataframe(f)
star = api.Star.from_dataframe(df)
assert repr(star) == 'Star(ra shape=214, dec shape=214, ra_mas_per_year shape=214, dec_mas_per_year shape=214, parallax_mas shape=214, epoch shape=214)'