Skip to content

Commit

Permalink
Do not subtract 2400000.5 from config input
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Nov 3, 2023
1 parent f50ecba commit 77ba002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ kowalski:
# Current alerts (on kowalski)
alerts: ZTF_alerts
# If cutting off light curve at a given data release, enter the max HJD below
# (JD - 2400000.5 corrected for Earth/Sun light travel time)
# (JD corrected for Earth/Sun light travel time)
max_timestamp_hjd:
fritz:
token:
Expand Down
2 changes: 1 addition & 1 deletion scope/fritz.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_lightcurves_via_ids(

time_filter = {"$gt": 0.0}
if cutoff_hjd is not None:
time_filter["$lte"] = 2400000.5 + cutoff_hjd
time_filter["$lte"] = cutoff_hjd

queries = [
{
Expand Down

0 comments on commit 77ba002

Please sign in to comment.