From f6036cf840367307572dc88cef698a3b79e0be9a Mon Sep 17 00:00:00 2001 From: JulienPeloton Date: Mon, 6 Nov 2023 16:44:21 +0100 Subject: [PATCH] [HOTFIX] fix misssing keys for the carousel --- apps/plotting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/plotting.py b/apps/plotting.py index b8bd9685..e7423b91 100644 --- a/apps/plotting.py +++ b/apps/plotting.py @@ -1016,7 +1016,6 @@ def draw_lightcurve_preview(name) -> dict: """ cols = [ 'i:jd', 'i:magpsf', 'i:sigmapsf', 'i:fid', - 'i:magnr', 'i:sigmagnr', 'i:magzpsci', 'i:isdiffpos', 'i:candid' ] r = requests.post( '{}/api/v1/objects'.format(APIURL), @@ -1028,7 +1027,6 @@ def draw_lightcurve_preview(name) -> dict: } ) pdf_ = pd.read_json(r.content) - pdf = pdf_.loc[:, cols] # Mask upper-limits (but keep measurements with bad quality) mag_ = pdf['i:magpsf'] @@ -1633,6 +1631,7 @@ def draw_cutouts_quickview(name): try: # transfer only necessary columns cols = [ + 'i:objectId', 'i:jd', 'b:cutout{}_stampData'.format(kind.capitalize()), ]