Skip to content

Commit

Permalink
Fixed psfn=None case in mu_sigma estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
VChristiaens committed Nov 25, 2024
1 parent 1396286 commit b4d6484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vip_hci/fm/negfc_fmerit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b4d6484

Please sign in to comment.