Skip to content

Commit

Permalink
Raise a RuntimeError when PYOORB returns a non-zero error during prop…
Browse files Browse the repository at this point in the history
…agation
  • Loading branch information
moeyensj committed Aug 10, 2023
1 parent f27cbc0 commit 627540b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adam_core/propagator/pyoorb.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def _propagate_orbits(self, orbits: Orbits, times: Time) -> Orbits:
)
states_list.append(orbits_pyoorb_i)

if err != 0:
raise RuntimeError(f"PYOORB propagation failed with error code {err}.")

# Convert list of new states into a pandas data frame
# These states at the moment will always be return as cartesian
# state vectors
Expand Down

0 comments on commit 627540b

Please sign in to comment.