Skip to content

Commit

Permalink
Added small fix to time initialization
Browse files Browse the repository at this point in the history
In the case a time array was passed in, it was not ensured that the initial time was correctly assigned.
  • Loading branch information
SuperdoerTrav authored Jan 6, 2025
1 parent d1e05e9 commit 0c1b51b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssapy/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def ssapy_orbit(orbit=None, a=None, e=0, i=0, pa=0, raan=0, ta=0, r=None, v=None
time_is_None = True
t = get_times(duration=duration, freq=freq, t0=t0)
else:
t0 = t[0]
time_is_None = False

if orbit is not None:
Expand Down

0 comments on commit 0c1b51b

Please sign in to comment.