Skip to content

Commit

Permalink
Another minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuEdRaMo committed Jan 8, 2024
1 parent 074372e commit db73ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orbit_determination/outlier_rejection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ function outlier_rejection(radec::Vector{RadecMPC{T}}, sol::NEOSolution{T, T},
# Backward integration
bwd = propagate(dynamics, jd0, nyears_bwd, q, params)

if bwd.t[end] > t0 - jd0
if bwd.t[end] > t0 - jd0 || any(norm.(bwd.x, Inf) .> 100)
return zero(NEOSolution{T, T})
end

# Forward integration
fwd = propagate(dynamics, jd0, nyears_fwd, q, params)

if fwd.t[end] < tf - jd0
if fwd.t[end] < tf - jd0 || any(norm.(fwd.x, Inf) .> 100)
return zero(NEOSolution{T, T})
end

Expand Down

0 comments on commit db73ab3

Please sign in to comment.