Skip to content

Commit

Permalink
Do not replace negative times with NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Mar 25, 2024
1 parent f0a9ffb commit f467d83
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lvmapi/tools/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,7 @@ def get_ephemeris_summary(sjd: int | None = None) -> dict:
twilight_start = Time(data["twilight_start"][0], format="jd")

time_to_sunset = (sunset - Time.now()).to(uu.h).value
if time_to_sunset < 0:
time_to_sunset = numpy.nan

time_to_sunrise = (sunrise - Time.now()).to(uu.h).value
if time_to_sunrise < 0:
time_to_sunrise = numpy.nan

is_twilight = (
Time(data["twilight_end"][0], format="jd")
Expand Down

0 comments on commit f467d83

Please sign in to comment.