Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Nov 7, 2024
1 parent dc32b9f commit 334989b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/test_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def test_generate_schedule(self):
dec_deg=11.253441,
total_exposure_time=100.0,
n_dither=1,
start_time_mjd=62721.1894969287,
end_time_mjd=62722.1894969452,
target_name="test_radec",
),
program=program,
Expand Down
2 changes: 1 addition & 1 deletion wintertoo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def up_tonight(time_mjd: astropy.time.Time, ra: str, dec: str) -> tuple[bool, st
sun_rise = palomar_observer.sun_rise_time(time - 0.05 * u.day, which="previous")
sun_set = palomar_observer.sun_set_time(time, which="next")
if isinstance(sun_rise.value, Masked):
sun_set = palomar_observer.sun_rise_time(time + 0.05 * u.day, which="previous")
sun_set = palomar_observer.sun_rise_time(time + 0.05 * u.day, which="next")

night = sun_set.jd - sun_rise.jd
if night >= 1:
Expand Down

0 comments on commit 334989b

Please sign in to comment.