From 03e6cbdaa54d23425b3d715f3b9c0e48b2870d77 Mon Sep 17 00:00:00 2001 From: beckermr Date: Thu, 21 Jul 2022 06:24:37 -0500 Subject: [PATCH 1/2] BUG use area norm for all gauss mom things --- ngmix/gaussmom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ngmix/gaussmom.py b/ngmix/gaussmom.py index 9ebd663e..70faccce 100644 --- a/ngmix/gaussmom.py +++ b/ngmix/gaussmom.py @@ -58,6 +58,13 @@ def _measure_moments(self, obs): res['flux'] *= fac res['flux_err'] *= fac res['pars'][5] *= fac + res["mom"] *= fac + res["mom_cov"] *= fac**2 + res["mom_norm"] *= fac + res["sums"] *= fac + res["sums_cov"] *= fac**2 + res["wsum"] *= fac + res["mom_err"] *= fac return res def _set_mompars(self): From dfcc4fe5e17db16c6234f059d6598781242a61fd Mon Sep 17 00:00:00 2001 From: beckermr Date: Thu, 21 Jul 2022 06:26:41 -0500 Subject: [PATCH 2/2] DOC add changelog entry --- CHANGES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 2f136baa..2b178ac3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ ## v2.1.0 +### bug fixes + + - Fixed 1/area normalization for all moments fields in `GaussMom` results. + ### new features - Added `fwhm_smooth` keyword to pre-PSF moments routines to allow for extra