diff --git a/config.defaults.yaml b/config.defaults.yaml index a4479b6f..059592b6 100644 --- a/config.defaults.yaml +++ b/config.defaults.yaml @@ -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: diff --git a/scope/fritz.py b/scope/fritz.py index 2df2146b..9b7386a5 100755 --- a/scope/fritz.py +++ b/scope/fritz.py @@ -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 = [ {