33"""
44Tests for the photutils PSF converters.
55"""
6- from astropy import units as u
76import asdf
7+ from astropy import units as u
88
99from photutils .psf import AiryDiskPSF
1010
11-
1211psfs = [
13- AiryDiskPSF (flux = 1 * u .Jy , x_0 = 0 * u .arcsec , y_0 = 0 * u .arcsec ,
14- radius = 1 * u .arcsec , bbox_factor = 2 ),
15- AiryDiskPSF (flux = 2 * u .Jy , x_0 = 1 * u .arcsec , y_0 = 1 * u .arcsec ,
16- radius = 2 * u .arcsec , bbox_factor = 3 ),
12+ AiryDiskPSF (flux = 1 * u .Jy , x_0 = 0 * u .arcsec , y_0 = 0 * u .arcsec ,
13+ radius = 1 * u .arcsec , bbox_factor = 2 ),
14+ AiryDiskPSF (flux = 2 * u .Jy , x_0 = 1 * u .arcsec , y_0 = 1 * u .arcsec ,
15+ radius = 2 * u .arcsec , bbox_factor = 3 ),
1716]
1817
1918
@@ -23,11 +22,11 @@ def test_psf_converters(tmp_path):
2322 """
2423 for psf in psfs :
2524 with asdf .AsdfFile () as af :
26- af [" psf" ] = psf
27- af .write_to (tmp_path / " psf.asdf" )
25+ af [' psf' ] = psf
26+ af .write_to (tmp_path / ' psf.asdf' )
2827
29- with asdf .open (tmp_path / " psf.asdf" ) as af :
30- psf2 = af [" psf" ]
28+ with asdf .open (tmp_path / ' psf.asdf' ) as af :
29+ psf2 = af [' psf' ]
3130
3231 assert psf .flux == psf2 .flux
3332 assert psf .x_0 == psf2 .x_0
0 commit comments