Skip to content

Commit a719538

Browse files
committed
Remove deprecated photutils usage
1 parent b366556 commit a719538

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/euclid_access/Euclid_ERO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ from astropy.stats import sigma_clipped_stats
6666
# Photometry tools
6767
import sep
6868
from photutils.detection import DAOStarFinder
69-
from photutils.psf import PSFPhotometry, IterativePSFPhotometry, IntegratedGaussianPRF, make_psf_model_image
69+
from photutils.psf import PSFPhotometry, IterativePSFPhotometry, CircularGaussianSigmaPRF, make_psf_model_image
7070
from photutils.background import LocalBackground, MMMBackground
7171

7272
# Firefly
@@ -337,7 +337,7 @@ psf_fwhm = 0.16 # PSF FWHM in arcsec
337337
pixscale = 0.1 # VIS pixel scale in arcsec/px
338338

339339
init_params = Table([objects["x"],objects["y"]] , names=["x","y"]) # initial positions
340-
psf_model = IntegratedGaussianPRF(flux=1, sigma=psf_fwhm/pixscale / 2.35)
340+
psf_model = CircularGaussianSigmaPRF(flux=1, sigma=psf_fwhm/pixscale / 2.35)
341341
psf_model.x_0.fixed = True
342342
psf_model.y_0.fixed = True
343343
psf_model.sigma.fixed = False
@@ -457,7 +457,7 @@ psf_fwhm = 0.3 # arcsec
457457
pixscale = 0.3 # arcsec/px
458458

459459
init_params = Table([xy[0],xy[1]] , names=["x","y"]) # initial positions
460-
psf_model = IntegratedGaussianPRF(flux=1, sigma=psf_fwhm/pixscale / 2.35)
460+
psf_model = CircularGaussianSigmaPRF(flux=1, sigma=psf_fwhm/pixscale / 2.35)
461461
psf_model.x_0.fixed = True
462462
psf_model.y_0.fixed = True
463463
psf_model.sigma.fixed = False

0 commit comments

Comments
 (0)