From 85b4a23c1a83ef82f9bff80938c56e7d4d6e410b Mon Sep 17 00:00:00 2001 From: Ismael Mendoza <11745764+ismael-mendoza@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:26:02 -0400 Subject: [PATCH] fix (#483) --- btk/draw_blends.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btk/draw_blends.py b/btk/draw_blends.py index adb4b498..2486a5e1 100644 --- a/btk/draw_blends.py +++ b/btk/draw_blends.py @@ -431,9 +431,7 @@ def render_blend( for ii, entry in enumerate(blend_catalog): single_image = self.render_single(entry, filt, psf, survey) - if single_image is None: - iso_image[ii] = np.zeros(single_image) - else: + if single_image is not None: iso_image[ii] = single_image.array blend_image += single_image