I changed that earlier today in the new pull request:

https://github.com/wafels/sunpy/blob/ji_image_alignment/sunpy/image/coalignment.py


On Tue, Apr 29, 2014 at 10:12 PM, rhewett <notifications@github.com> wrote:

> In sunpy/image/coalignment.py:
>
> > +        if bx == 0:
> > +            x = 1
> > +        if bx == nx - 1:
> > +            x = nx - 2
> > +
> > +        # y locations taking in to account the boundary
> > +        y = by
> > +        if by == 0:
> > +            y = 1
> > +        if by == ny - 1:
> > +            y = ny - 2
> > +
> > +        # Get the sub array around the bad index, and find the local mean
> > +        # ignoring nans
> > +        subarray = z[y - 1: y + 2, x - 1: x + 2]
> > +        z[by, bx] = np.nanmean(subarray * np.isfinite(subarray))
>
> Minor problem here: np.nanmean is new in numpy 1.8, but the minimum
> version we require is 1.7.1.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/sunpy/sunpy/pull/903/files#r12126541>
> .
>