From 61d05ec8d0b56edcee2ac61b6a965b74057fa46a Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Sat, 16 Nov 2024 12:44:21 +0000 Subject: [PATCH] fix bug --- py/rvspecfit/desi/desi_fit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/rvspecfit/desi/desi_fit.py b/py/rvspecfit/desi/desi_fit.py index bca8a4e..c557cc8 100644 --- a/py/rvspecfit/desi/desi_fit.py +++ b/py/rvspecfit/desi/desi_fit.py @@ -315,6 +315,7 @@ def proc_onespec( if curd.name not in chisqs: chisqs[curd.name] = 0 chisqs_c[curd.name] = 0 + npixels[curd.name] = 0 chisqs[curd.name] += fit_res['chisq_array'][i] chisqs_c[curd.name] += chisq_cont_array[i] npixels[curd.name] += fit_res['npix_array'][i]