With VIP 0.7.5, fit_2dgaussian returns a pandas dataframe with full_output=True instead of a series of variables. This accounts for this change.
@@ -194,9 +194,8 @@ def detection(array, psf, bkg_sigma=1, mode='lpeaks', matched_filter=False,
raise TypeError('Input psf is not a 2d array or has wrong size')
# Getting the FWHM from the PSF array
- _,_,fwhm_y, fwhm_x,_,_ = fit_2dgaussian(psf, cent=(frame_center(psf)[1],
- frame_center(psf)[0]),
- debug=debug, full_output=True)
+ outdf = fit_2dgaussian(psf, cent=(frame_center(psf)[1],frame_center(psf)[0]),debug=debug, full_output=True)
+ fwhm_x, fwhm_y = outdf.at[0,'fwhm_x'],outdf.at[0,'fwhm_y']
fwhm = np.mean([fwhm_x, fwhm_y])
if verbose:
print 'FWHM =', fwhm
