Skip to content

Commit

Permalink
Check that all tles are not None
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Oct 15, 2024
1 parent 73b4d06 commit 76d8554
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion rubin_sim/satellite_constellations/model_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import numpy as np
from rubin_scheduler.scheduler.model_observatory import ModelObservatory as oMO
from rubin_scheduler.site_models import Almanac

from rubin_scheduler.utils import SURVEY_START_MJD, _healbin

# Take the model observatory from the scheduler and
Expand Down
1 change: 0 additions & 1 deletion rubin_sim/satellite_constellations/sat_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import numpy as np
from astropy import constants as const
from astropy import units as u

from rubin_scheduler.utils import SURVEY_START_MJD, Site, gnomonic_project_toxy, point_to_line_distance
from shapely.geometry import LineString, Point
from skyfield.api import EarthSatellite, load, wgs84
Expand Down
8 changes: 6 additions & 2 deletions tests/satellite_constellations/test_satellites.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ def test_constellations(self):

mjd0 = SURVEY_START_MJD
sv1 = starlink_tles_v1()
_ = starlink_tles_v2()
_ = oneweb_tles()
sv2 = starlink_tles_v2()
onw = oneweb_tles()

assert sv1 is not None
assert sv2 is not None
assert onw is not None

const = Constellation(sv1)

Expand Down

0 comments on commit 76d8554

Please sign in to comment.