The old values were for the subpixel method. I'm not totally sure but I
think that method, for these parameters, is subject to floating point
round-off error. (Your results exclude two subpixels that are included in
the old results. These are probably ones that are exactly on the aperture
border).
On May 21, 2014 6:23 AM, "Christoph Deil" <notifications@github.com> wrote:

> In docs/photutils/aperture.rst:
>
> >    >>> flux
> > -  array([  3.08,  12.36,  28.04,  49.88])
> > +  array([  3.14159265,  12.56637061,  28.27433388,  50.26548246])
>
> I think the new values are correct and am not able to reproduce the old
> values from the docs.
> @astrofrog <https://github.com/astrofrog> @kbarbary<https://github.com/kbarbary>Agreed that the old example output from the aperture photometry docs
> is incorrect and the new values are OK?
>
> In [9]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(1), method='exact')
> Out[9]: 3.1415926535897931
>
> In [10]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(1), method='subpixel')
> Out[10]: 2.7599999999999998
>
> In [11]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(1), method='center')
> Out[11]: 1.0
>
> In [12]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(3), method='center')
> Out[12]: 25.0
>
> In [13]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(3), method='subpixel')
> Out[13]: 27.959999999999997
>
> In [14]: photutils.aperture_photometry(np.ones((100,100)), 10, 10, photutils.CircularAperture(3), method='exact')
> Out[14]: 28.274333882308134
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/astropy/photutils/pull/55/files#r12895150>
> .
>