From ed8e618564a9f59c4191cf795c1cb765c1b951a7 Mon Sep 17 00:00:00 2001 From: AlexKurek Date: Wed, 3 Jun 2026 18:26:45 +0200 Subject: [PATCH] Fix initial Gaussian size estimation in `inigaus_nobeam` --- bdsf/gausfit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdsf/gausfit.py b/bdsf/gausfit.py index 12b041e..d408c23 100644 --- a/bdsf/gausfit.py +++ b/bdsf/gausfit.py @@ -682,7 +682,7 @@ def inigaus_nobeam(self, isl, thr, beam, img): invmask[i] = invmask[i]*newmask resid = N.zeros(im.shape, dtype=N.float32) # approx fit all compact ones for i in range(nshed): - size = sqrt(N.sum(invmask))/fwsig + size = sqrt(N.sum(invmask[i]))/fwsig xf, yf = coords[i][0], coords[i][1] p_ini = [im[xf, yf], xf, yf, size, size, 0.0] x, y = N.indices(im.shape)