Skip to content

Commit

Permalink
[HOTFIX] fix misssing keys for the carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Nov 6, 2023
1 parent 55ba1c5 commit f6036cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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']
Expand Down Expand Up @@ -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()),
]
Expand Down

0 comments on commit f6036cf

Please sign in to comment.