Skip to content
Snippets Groups Projects
Commit bf4707a9 authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Fix a bug with orbit file unit tests

parent fdcf2b71
No related branches found
No related tags found
1 merge request!105Resolve "Error when using orbit files v2.0"
tests/esa-trailing-orbits-2-0-dev.h5 filter=lfs diff=lfs merge=lfs -text
tests/keplerian-orbits-1-0-2.h5 filter=lfs diff=lfs merge=lfs -text tests/keplerian-orbits-1-0-2.h5 filter=lfs diff=lfs merge=lfs -text
tests/esa-orbits-1-0-2.h5 filter=lfs diff=lfs merge=lfs -text
tests/keplerian-orbits-2-0-dev.h5 filter=lfs diff=lfs merge=lfs -text tests/keplerian-orbits-2-0-dev.h5 filter=lfs diff=lfs merge=lfs -text
tests/esa-orbits-1-0-5.h5 filter=lfs diff=lfs merge=lfs -text tests/esa-trailing-orbits-2-0-dev.h5 filter=lfs diff=lfs merge=lfs -text
File moved
...@@ -29,12 +29,12 @@ def test_no_orbit_file(): ...@@ -29,12 +29,12 @@ def test_no_orbit_file():
with pytest.raises(FileNotFoundError): with pytest.raises(FileNotFoundError):
Instrument(size=100, t0=0, orbits='tests/nonexistent-orbits.h5') Instrument(size=100, t0=0, orbits='tests/nonexistent-orbits.h5')
def test_keplerian_orbits_1_0_5(): def test_keplerian_orbits_1_0_2():
"""Test that simulations can run with Keplerian orbit files v1.0.2.""" """Test that simulations can run with Keplerian orbit files v1.0.2."""
instru = Instrument(size=100, orbits='tests/keplerian-orbits-1-0-2.h5') instru = Instrument(size=100, orbits='tests/keplerian-orbits-1-0-2.h5')
instru.simulate() instru.simulate()
def test_esa_orbits_1_0_5(): def test_esa_orbits_1_0_2():
"""Test that simulations can run with ESA orbit files v1.0.2.""" """Test that simulations can run with ESA orbit files v1.0.2."""
instru = Instrument(size=100, orbits='tests/esa-orbits-1-0-2.h5') instru = Instrument(size=100, orbits='tests/esa-orbits-1-0-2.h5')
instru.simulate() instru.simulate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment