From 8541313a360a8f5cefe92011517163f76f6ae187 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 29 Jun 2026 19:54:13 +0000 Subject: [PATCH] GALEX service was giving data URLs ending in jpeg. sigh --- app/host/cutouts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/host/cutouts.py b/app/host/cutouts.py index 2bd5fbb4..b2c26540 100644 --- a/app/host/cutouts.py +++ b/app/host/cutouts.py @@ -345,8 +345,7 @@ def galex_cutout(position, image_size=None, filter=None): # avoid masked regions center = SkyCoord(obs["s_ra"], obs["s_dec"], unit=u.deg) sep = position.separation(center).deg - obs = obs[sep < 0.55] - + obs = obs[(sep < 0.55) & ~np.char.endswith(obs["dataURL"], ".jpeg")] if len(obs) > 1: obs = obs[obs["t_exptime"] == max(obs["t_exptime"])]