Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Nov 26, 2024
1 parent 3cce178 commit 7c4df0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fink_filters/filter_anomaly_notification/filter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def get_cutout(ztf_id):
)
if not status_check(r, 'get cutouts'):
return io.BytesIO()
data = np.log(np.array(r.json()[0]['b:cutoutScience_stampData'], dtype=float))
data = np.log(np.array(r.json()['b:cutoutScience_stampData'], dtype=float))
plt.axis('off')
plt.imshow(data, cmap='PuBu_r')
buf = io.BytesIO()
Expand Down

0 comments on commit 7c4df0b

Please sign in to comment.