From b4d6484435e039200b717999dcd4ac278da690d4 Mon Sep 17 00:00:00 2001 From: VChristiaens Date: Mon, 25 Nov 2024 20:13:45 +0100 Subject: [PATCH] Fixed psfn=None case in mu_sigma estimate --- vip_hci/fm/negfc_fmerit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vip_hci/fm/negfc_fmerit.py b/vip_hci/fm/negfc_fmerit.py index bea0dc4c..b74eb844 100644 --- a/vip_hci/fm/negfc_fmerit.py +++ b/vip_hci/fm/negfc_fmerit.py @@ -970,6 +970,8 @@ def _estimate_mu_sigma_3d(cube, angs, ncomp, annulus_width, aperture_radius, fwhm = [fwhm]*nch if f_guess is None or np.isscalar(f_guess): f_guess = [f_guess]*nch + if psfn is None: + psfn = [psfn]*nch for ch in range(nch): res = _estimate_mu_sigma_3d(cube[ch], angs, ncomp, annulus_width, aperture_radius, fwhm[ch], r_guess,