diff --git a/fink_filters/filter_anomaly_notification/filter_utils.py b/fink_filters/filter_anomaly_notification/filter_utils.py index a9fb363..f22a243 100755 --- a/fink_filters/filter_anomaly_notification/filter_utils.py +++ b/fink_filters/filter_anomaly_notification/filter_utils.py @@ -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()