Skip to content

Commit

Permalink
Make the test observation source orbit move a little slower
Browse files Browse the repository at this point in the history
  • Loading branch information
spenczar committed Aug 31, 2023
1 parent 19cd987 commit cb8e4cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions thor/tests/test_observation_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def fixed_test_orbit():
y=[0],
z=[0],
vx=[0],
vy=[6.14],
vy=[2*np.pi/365.25],
vz=[0],
time=coordinates.Times.from_astropy(astropy.time.Time("2020-01-01T00:00:00")),
origin=coordinates.Origin.from_kwargs(code=["SUN"]),
Expand Down Expand Up @@ -119,7 +119,5 @@ def test_fixed_radius_observation_source(fixed_test_orbit, fixed_observations):
assert len(have.exposures) == 5
assert have.exposures == fixed_observations.exposures
assert len(have.detections) < len(fixed_observations.detections)

# Approximately pi/4 (~0.78) of the detections should be in the 0.5 degree
# radius
assert len(have.detections) > 0.75 * len(fixed_observations.detections)

0 comments on commit cb8e4cc

Please sign in to comment.