From 7c4df0b104079d5911d409c7a289e646af265660 Mon Sep 17 00:00:00 2001 From: JulienPeloton Date: Tue, 26 Nov 2024 23:15:21 +0100 Subject: [PATCH] Fix return type --- fink_filters/filter_anomaly_notification/filter_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()