ó
šßÈ[c           @` sÈ  d  d l  m Z m Z m Z m Z d  d l Z d  d l Z d  d l m	 Z	 d d l
 m Z m Z m Z m Z d d l m Z d d l m Z d d	 l m Z d d
 l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z m  Z  d g Z! e" d d d g Z# e d d ƒ d d d e$ e" e% d d „ ƒ Z& e d d d ƒ e d d ƒ d d d e$ d e% e" e$ e% e" e" e% d e% e j' j( e j' j) e j* d „ ƒ ƒ Z+ e& d „ Z, d d „ Z- d S(    i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   partiali   (   t   Kernelt   Kernel1Dt   Kernel2Dt   MAX_NORMALIZATIONi   (   t   AstropyUserWarning(   t   human_file_size(   t   deprecated_renamed_argument(   t   units(   t   support_nddata(   t   _make_arithmetic_operatort   BINARY_OPERATORS(   t   _CompoundModelMeta(   t   ranget   zipu   *u   fillu   wrapu   extendt   datau   arrayg        u   interpolateg:Œ0âŽyE>c	   !      C` st  d d l  m }	 m }
 m } d d l m } m } m } d d l m	 } m
 } m } d d l m } m } m } | t k r” t d j t ƒ ƒ ‚ n  | d k r¯ t d	 ƒ ‚ n  t | t ƒ rt |  t ƒ r‘t |  t ƒ rt | t ƒ r| |  j | j d
 t ƒ } t d | ƒ } nW t |  t ƒ rct | t ƒ rc| |  j | j d
 t ƒ } t d | ƒ } n t d ƒ ‚ | j o~|  j | _ t | _ | S| j } n  t |  t ƒ rÐt j |  d t j ƒ} | j  } n? t |  t j! ƒ r|  j  } |  j" t d t ƒ} n t# d ƒ ‚ t | t ƒ r6t j | d t ƒ} n0 t | t j! ƒ rZ| j" t ƒ } n t# d ƒ ‚ | j$ | j$ k r‡t d ƒ ‚ n  t } t j% j& |  ƒ rº| j' t j( ƒ } t } n  | d k	 r÷| sá| j* ƒ  } t } n  t j( | | d
 k <n  t j% j& | ƒ r| j' | ƒ } n  | r3t j+ | ƒ } n  | d k r[t j+ | ƒ } | | | <n  | j, ƒ  } t j- | d
 d | ƒ} | d t. k  s•| r·| r·t d j d t. ƒ ƒ ‚ n  | sÊ| | } n  | } | j$ d
 k rït d ƒ ‚ né| j$ d k rŽ| d k r| | | | ƒ }  qØ| d k rI| | | t | ƒ | ƒ }  qØ| d k rj| | | | ƒ }  qØ| d k rØ|	 | | | ƒ }  qØnJ| j$ d k r-| d k r¾| | | | ƒ }  qØ| d k rè| | | t | ƒ | ƒ }  qØ| d k r	| | | | ƒ }  qØ| d k rØ|
 | | | ƒ }  qØn« | j$ d k rÌ| d k r]| | | | ƒ }  qØ| d k r‡| | | t | ƒ | ƒ }  qØ| d k r¨| | | | ƒ }  qØ| d k rØ| | | | ƒ }  qØn t/ d ƒ ‚ | ró| ró|  | 9}  n  | r	t j( |  | <n  | d k r%t j( | | <n  | j0 d k rly |  j" | d t ƒSWqpt# k
 rh|  j" | ƒ SXn |  Sd S(   u,  
    Convolve an array with a kernel.

    This routine differs from `scipy.ndimage.convolve` because
    it includes a special treatment for ``NaN`` values. Rather than
    including ``NaN`` values in the array in the convolution calculation, which
    causes large ``NaN`` holes in the convolved array, ``NaN`` values are
    replaced with interpolated values using the kernel as an interpolation
    function.

    Parameters
    ----------
    array : `numpy.ndarray` or `~astropy.nddata.NDData`
        The array to convolve. This should be a 1, 2, or 3-dimensional array
        or a list or a set of nested lists representing a 1, 2, or
        3-dimensional array.  If an `~astropy.nddata.NDData`, the ``mask`` of
        the `~astropy.nddata.NDData` will be used as the ``mask`` argument.
    kernel : `numpy.ndarray` or `~astropy.convolution.Kernel`
        The convolution kernel. The number of dimensions should match those for
        the array, and the dimensions should be odd in all directions.  If a
        masked array, the masked values will be replaced by ``fill_value``.
    boundary : str, optional
        A flag indicating how to handle boundaries:
            * `None`
                Set the ``result`` values to zero where the kernel
                extends beyond the edge of the array.
            * 'fill'
                Set values outside the array boundary to ``fill_value`` (default).
            * 'wrap'
                Periodic boundary that wrap to the other side of ``array``.
            * 'extend'
                Set values outside the array to the nearest ``array``
                value.
    fill_value : float, optional
        The value to use outside the array when using ``boundary='fill'``
    normalize_kernel : bool, optional
        Whether to normalize the kernel to have a sum of one prior to
        convolving
    nan_treatment : 'interpolate', 'fill'
        interpolate will result in renormalization of the kernel at each
        position ignoring (pixels that are NaN in the image) in both the image
        and the kernel.
        'fill' will replace the NaN pixels with a fixed numerical value (default
        zero, see ``fill_value``) prior to convolution
        Note that if the kernel has a sum equal to zero, NaN interpolation
        is not possible and will raise an exception
    preserve_nan : bool
        After performing convolution, should pixels that were originally NaN
        again become NaN?
    mask : `None` or `numpy.ndarray`
        A "mask" array.  Shape must match ``array``, and anything that is masked
        (i.e., not 0/`False`) will be set to NaN for the convolution.  If
        `None`, no masking will be performed unless ``array`` is a masked array.
        If ``mask`` is not `None` *and* ``array`` is a masked array, a pixel is
        masked of it is masked in either ``mask`` *or* ``array.mask``.
    normalization_zero_tol: float, optional
        The absolute tolerance on whether the kernel is different than zero.
        If the kernel sums to zero to within this precision, it cannot be
        normalized. Default is "1e-8".

    Returns
    -------
    result : `numpy.ndarray`
        An array with the same dimensions and as the input array,
        convolved with kernel.  The data type depends on the input
        array type.  If array is a floating point type, then the
        return array keeps the same data type, otherwise the type
        is ``numpy.float``.

    Notes
    -----
    For masked arrays, masked values are treated as NaNs.  The convolution
    is always done at ``numpy.float`` precision.
    i   (   t   convolve1d_boundary_nonet   convolve2d_boundary_nonet   convolve3d_boundary_none(   t   convolve1d_boundary_extendt   convolve2d_boundary_extendt   convolve3d_boundary_extend(   t   convolve1d_boundary_fillt   convolve2d_boundary_fillt   convolve3d_boundary_fill(   t   convolve1d_boundary_wrapt   convolve2d_boundary_wrapt   convolve3d_boundary_wrapu+   Invalid boundary option: must be one of {0}u   interpolateu   fillu1   nan_treatment must be one of 'interpolate','fill'i    t   arrayu    Can't convolve 1D and 2D kernel.t   dtypet   copyu'   array should be a list or a Numpy arrayu(   kernel should be a list or a Numpy arrayu5   array and kernel have differing number of dimensions.t   atolg      ð?uf   The kernel can't be normalized, because its sum is close to zero. The sum of the given kernel is < {0}u$   cannot convolve 0-dimensional arraysu   extendu   wrapi   i   uB   convolve only supports 1, 2, and 3-dimensional arrays at this timeu   fN(   u   interpolateu   fill(1   t   boundary_noneR   R   R   t   boundary_extendR   R   R   t   boundary_fillR   R   R   t   boundary_wrapR   R   R   t   BOUNDARY_OPTIONSt
   ValueErrort   formatt
   isinstanceR   R   R    t   TrueR   t	   Exceptiont
   _separablet   Falset   _is_boolt   listt   npt   floatR!   t   ndarrayt   astypet	   TypeErrort   ndimt   mat	   is_maskedt   filledt   nant   NoneR"   t   isnant   sumt   iscloseR   t   NotImplementedErrort   kind(!   R    t   kernelt   boundaryt
   fill_valuet   nan_treatmentt   normalize_kernelt   maskt   preserve_nant   normalization_zero_tolR   R   R   R   R   R   R   R   R   R   R   R   t	   new_arrayt
   new_kernelt   array_internalt   array_dtypet   kernel_internalt   array_internal_copiedt   badvalst   initially_nant
   kernel_sumt   kernel_sums_to_zerot   renormalize_by_kernelt   result(    (    s;   lib/python2.7/site-packages/astropy/convolution/convolve.pyt   convolve   s   N									u   interpolate_nanu   nan_treatmentu   v2.0.0c   3      C` sŽ  t  | t ƒ r9 | j } t  |  t ƒ r9 t d ƒ ‚ q9 n  | d k rT t d ƒ ‚ n  t j |  d t j ƒ}  t j | d t j ƒ} |  j | j k r¥ t d ƒ ‚ n  |  j	 } | j	 } t j
 | d t j ƒt j | ƒ j t j } | d t j k r*| r*t d j t | j t j ƒ ƒ ƒ ƒ ‚ n  t j j |  ƒ rd|  j } t j |  ƒ }  t j |  | <n | d k	 r‚t j |  ƒ }  n  | d k	 r¤t j |  | d	 k <n  t j j | ƒ rÈ| j d	 ƒ } n  t j |  ƒ t j |  ƒ B} d	 |  | <t j | ƒ t j | ƒ B} d	 | | <| t k rq| j ƒ  d
 t k  rRt d j d
 t ƒ ƒ ‚ n  | j ƒ  } | | } d } nt | r| | ƒ } | | } nU | j ƒ  } t j  | ƒ | k  rÛ| d k rÌt d ƒ ‚ qåd } | } n
 | | } | d k r.t! j" d t# ƒ | d k rt } n  | d k ræt } qæn¸ | d k r€| t$ k rbt! j" d j | ƒ t# ƒ n t } | d k ræt } qænf | d k rË| r¡t d ƒ ‚ n  t$ } | r¼t d ƒ ‚ n  t$ } d	 } n | d k ræt% d ƒ ‚ n  | r| r0d t j& t j' t j( t j | ƒ t j | ƒ ƒ ƒ ƒ } n) d t j& t j' t j( | | ƒ ƒ ƒ } t j g  t) |  j ƒ D] } | ^ qod t* ƒ} ne | r²t j | ƒ t j | ƒ } n@ t j g  t+ | | ƒ D]! \ } } t j( | | g ƒ ^ qÈƒ } t j
 | d t j ƒt j | ƒ j t j }  |  d t j k rY| rYt d j t |  ƒ ƒ ƒ ‚ n  g  }! g  }" x• t, t+ | | | ƒ ƒ D]{ \ } \ }# }$ }% |# |# d d }& |! t- |& |$ d |& |$ d d ƒ g 7}! |" t- |& |% d |& |% d d ƒ g 7}" q~Wt. |! ƒ }! t. |" ƒ }" t j/ | | k ƒ swt j0 | ƒ rUt j1 | d | ƒ| }' n t j2 | d | ƒ}' |  |' |! <n |  }' t j/ | | k ƒ s´t j2 | d | ƒ}( | |( |" <n | }( | |' ƒ }) | t j3 j4 |( ƒ ƒ }* |) |* }+ | d k }, |, r~t j0 | ƒ s!t j2 | d | ƒ}- n t j1 | d | ƒ}- d
 | |, |- |! <| |- ƒ }. |. |* }/ | |/ ƒ }0 |0 j5 |! |- |! <n d }- t j |+ ƒ j6 ƒ  r¨t d ƒ ‚ n  t j |  | <t j | | <|+ | 9}+ |
 rÖ|+ S|, rF| |+ ƒ |- }1 t j7 |- ƒ sR| d k rt j |1 |- | k  <qCd |1 |- d t j8 |- j ƒ j9 k  <qRn | |+ ƒ }1 | rlt j |1 |! | <n  |	 rƒ|1 |! j5 }2 |2 S|1 j5 Sd S(   uþ  
    Convolve an ndarray with an nd-kernel.  Returns a convolved image with
    ``shape = array.shape``.  Assumes kernel is centered.

    `convolve_fft` is very similar to `convolve` in that it replaces ``NaN``
    values in the original image with interpolated values using the kernel as
    an interpolation function.  However, it also includes many additional
    options specific to the implementation.

    `convolve_fft` differs from `scipy.signal.fftconvolve` in a few ways:

    * It can treat ``NaN`` values as zeros or interpolate over them.
    * ``inf`` values are treated as ``NaN``
    * (optionally) It pads to the nearest 2^n size to improve FFT speed.
    * Its only valid ``mode`` is 'same' (i.e., the same shape array is returned)
    * It lets you use your own fft, e.g.,
      `pyFFTW <https://pypi.python.org/pypi/pyFFTW>`_ or
      `pyFFTW3 <https://pypi.python.org/pypi/PyFFTW3/0.2.1>`_ , which can lead to
      performance improvements, depending on your system configuration.  pyFFTW3
      is threaded, and therefore may yield significant performance benefits on
      multi-core machines at the cost of greater memory requirements.  Specify
      the ``fftn`` and ``ifftn`` keywords to override the default, which is
      `numpy.fft.fft` and `numpy.fft.ifft`.

    Parameters
    ----------
    array : `numpy.ndarray`
        Array to be convolved with ``kernel``.  It can be of any
        dimensionality, though only 1, 2, and 3d arrays have been tested.
    kernel : `numpy.ndarray` or `astropy.convolution.Kernel`
        The convolution kernel. The number of dimensions should match those
        for the array.  The dimensions *do not* have to be odd in all directions,
        unlike in the non-fft `convolve` function.  The kernel will be
        normalized if ``normalize_kernel`` is set.  It is assumed to be centered
        (i.e., shifts may result if your kernel is asymmetric)
    boundary : {'fill', 'wrap'}, optional
        A flag indicating how to handle boundaries:

            * 'fill': set values outside the array boundary to fill_value
              (default)
            * 'wrap': periodic boundary

        The `None` and 'extend' parameters are not supported for FFT-based
        convolution
    fill_value : float, optional
        The value to use outside the array when using boundary='fill'
    nan_treatment : 'interpolate', 'fill'
        ``interpolate`` will result in renormalization of the kernel at each
        position ignoring (pixels that are NaN in the image) in both the image
        and the kernel.  ``fill`` will replace the NaN pixels with a fixed
        numerical value (default zero, see ``fill_value``) prior to
        convolution.  Note that if the kernel has a sum equal to zero, NaN
        interpolation is not possible and will raise an exception.
    normalize_kernel : function or boolean, optional
        If specified, this is the function to divide kernel by to normalize it.
        e.g., ``normalize_kernel=np.sum`` means that kernel will be modified to be:
        ``kernel = kernel / np.sum(kernel)``.  If True, defaults to
        ``normalize_kernel = np.sum``.
    normalization_zero_tol: float, optional
        The absolute tolerance on whether the kernel is different than zero.
        If the kernel sums to zero to within this precision, it cannot be
        normalized. Default is "1e-8".
    preserve_nan : bool
        After performing convolution, should pixels that were originally NaN
        again become NaN?
    mask : `None` or `numpy.ndarray`
        A "mask" array.  Shape must match ``array``, and anything that is masked
        (i.e., not 0/`False`) will be set to NaN for the convolution.  If
        `None`, no masking will be performed unless ``array`` is a masked array.
        If ``mask`` is not `None` *and* ``array`` is a masked array, a pixel is
        masked of it is masked in either ``mask`` *or* ``array.mask``.


    Other Parameters
    ----------------
    min_wt : float, optional
        If ignoring ``NaN`` / zeros, force all grid points with a weight less than
        this value to ``NaN`` (the weight of a grid point with *no* ignored
        neighbors is 1.0).
        If ``min_wt`` is zero, then all zero-weight points will be set to zero
        instead of ``NaN`` (which they would be otherwise, because 1/0 = nan).
        See the examples below
    fft_pad : bool, optional
        Default on.  Zero-pad image to the nearest 2^n.  With
        ``boundary='wrap'``, this will be disabled.
    psf_pad : bool, optional
        Zero-pad image to be at least the sum of the image sizes to avoid
        edge-wrapping when smoothing.  This is enabled by default with
        ``boundary='fill'``, but it can be overridden with a boolean option.
        ``boundary='wrap'`` and ``psf_pad=True`` are not compatible.
    crop : bool, optional
        Default on.  Return an image of the size of the larger of the input
        image and the kernel.
        If the image and kernel are asymmetric in opposite directions, will
        return the largest image in both directions.
        For example, if an input image has shape [100,3] but a kernel with shape
        [6,6] is used, the output will be [100,6].
    return_fft : bool, optional
        Return the ``fft(image)*fft(kernel)`` instead of the convolution (which is
        ``ifft(fft(image)*fft(kernel))``).  Useful for making PSDs.
    fftn, ifftn : functions, optional
        The fft and inverse fft functions.  Can be overridden to use your own
        ffts, e.g. an fftw3 wrapper or scipy's fftn,
        ``fft=scipy.fftpack.fftn``
    complex_dtype : numpy.complex, optional
        Which complex dtype to use.  `numpy` has a range of options, from 64 to
        256.
    quiet : bool, optional
        Silence warning message about NaN interpolation
    allow_huge : bool, optional
        Allow huge arrays in the FFT?  If False, will raise an exception if the
        array or kernel size is >1 GB

    Raises
    ------
    ValueError:
        If the array is bigger than 1 GB after padding, will raise this exception
        unless ``allow_huge`` is True

    See Also
    --------
    convolve:
        Convolve is a non-fft version of this code.  It is more memory
        efficient and for small kernels can be faster.

    Returns
    -------
    default : ndarray
        ``array`` convolved with ``kernel``.  If ``return_fft`` is set, returns
        ``fft(array) * fft(kernel)``.  If crop is not set, returns the
        image, but with the fft-padded size instead of the input size

    Notes
    -----
        With ``psf_pad=True`` and a large PSF, the resulting data can become
        very large and consume a lot of memory.  See Issue
        https://github.com/astropy/astropy/pull/4366 for further detail.

    Examples
    --------
    >>> convolve_fft([1, 0, 3], [1, 1, 1])
    array([ 1.,  4.,  3.])

    >>> convolve_fft([1, np.nan, 3], [1, 1, 1])
    array([ 1.,  4.,  3.])

    >>> convolve_fft([1, 0, 3], [0, 1, 0])
    array([ 1.,  0.,  3.])

    >>> convolve_fft([1, 2, 3], [1])
    array([ 1.,  2.,  3.])

    >>> convolve_fft([1, np.nan, 3], [0, 1, 0], nan_treatment='interpolate')
    ...
    array([ 1.,  0.,  3.])

    >>> convolve_fft([1, np.nan, 3], [0, 1, 0], nan_treatment='interpolate',
    ...              min_wt=1e-8)
    array([ 1.,  nan,  3.])

    >>> convolve_fft([1, np.nan, 3], [1, 1, 1], nan_treatment='interpolate')
    array([ 1.,  4.,  3.])

    >>> convolve_fft([1, np.nan, 3], [1, 1, 1], nan_treatment='interpolate',
    ...               normalize_kernel=True)
    array([ 1.,  2.,  3.])

    >>> import scipy.fftpack  # optional - requires scipy
    >>> convolve_fft([1, np.nan, 3], [1, 1, 1], nan_treatment='interpolate',
    ...               normalize_kernel=True,
    ...               fftn=scipy.fftpack.fft, ifftn=scipy.fftpack.ifft)
    array([ 1.,  2.,  3.])

    uD   Can't convolve two kernels with convolve_fft.  Use convolve instead.u   interpolateu   fillu1   nan_treatment must be one of 'interpolate','fill'R!   u4   Image and kernel must have same number of dimensionsi   uO   Size Error: Arrays will be {}.  Use allow_huge=True to override this exception.i    g      ð?uf   The kernel can't be normalized, because its sum is close to zero. The sum of the given kernel is < {0}u5   Cannot interpolate NaNs with an unnormalizable kernelu¡   The convolve_fft version of boundary=None is equivalent to the convolve boundary='fill'.  There is no FFT equivalent to convolve's zero-if-kernel-leaves-boundaryuD   psf_pad was set to {0}, which overrides the boundary='fill' setting.u   wrapu0   With boundary='wrap', psf_pad cannot be enabled.u0   With boundary='wrap', fft_pad cannot be enabled.u   extendu@   The 'extend' option is not implemented for fft-based convolutioni   u2   Encountered NaNs in convolve.  This is disallowed.g        i
   N(   u   interpolateu   fill(:   R+   R   R    R6   R)   R2   t   asarrayt   complexR7   t   shapet   productt   int64R!   t   itemsizet   ut   bytet   GBR*   R
   t   to_valueR8   R9   RG   R;   R<   R:   R=   t   isinfR,   R>   R   R-   t   abst   warningst   warnR	   R/   R@   t   ceilt   log2t   maxR   t   intR   t	   enumeratet   slicet   tuplet   allt   isfinitet   onest   zerost   fftt	   ifftshiftt   realt   anyt   isscalart   finfot   eps(3   R    RB   RC   RD   RE   RF   RI   RH   RG   t   cropt
   return_fftt   fft_padt   psf_padt   quiett   min_wtt
   allow_huget   fftnt   ifftnt   complex_dtypet
   arrayshapet	   kernshapet   array_size_Bt   mamaskt   nanmaskarrayt   nanmaskkernelt   kernel_scalet   normalized_kernelt   fsizet   iit   newshapet   imsht   kernsht   array_size_Ct   arrayslicest
   kernslicest
   newdimsizet   arraydimsizet   kerndimsizet   centert   bigarrayt	   bigkernelt   arrayfftt   kernfftt   fftmultt   interpolate_nant   bigimwtt   wtfftt	   wtfftmultt   wtsmt   rifftRU   (    (    s;   lib/python2.7/site-packages/astropy/convolution/convolve.pyt   convolve_fft<  s   ½				!	

	
		
		
	/)4	7	.


)c         K` sm   t  j t  j |  ƒ ƒ s" |  j ƒ  S|  j ƒ  } | |  | d d d t | } t  j |  ƒ } | | | | <| S(   u\  
    Given a data set containing NaNs, replace the NaNs by interpolating from
    neighboring data points with a given kernel.

    Parameters
    ----------
    array : `numpy.ndarray`
        Array to be convolved with ``kernel``.  It can be of any
        dimensionality, though only 1, 2, and 3d arrays have been tested.
    kernel : `numpy.ndarray` or `astropy.convolution.Kernel`
        The convolution kernel. The number of dimensions should match those
        for the array.  The dimensions *do not* have to be odd in all directions,
        unlike in the non-fft `convolve` function.  The kernel will be
        normalized if ``normalize_kernel`` is set.  It is assumed to be centered
        (i.e., shifts may result if your kernel is asymmetric).  The kernel
        *must be normalizable* (i.e., its sum cannot be zero).
    convolve : `convolve` or `convolve_fft`
        One of the two convolution functions defined in this package.

    Returns
    -------
    newarray : `numpy.ndarray`
        A copy of the original array with NaN pixels replaced with their
        interpolated counterparts
    RE   u   interpolateRF   (   R2   Rs   R=   R"   R,   (   R    RB   RV   t   kwargst   newarrayt	   convolvedR=   (    (    s;   lib/python2.7/site-packages/astropy/convolution/convolve.pyt   interpolate_replace_nansê  s    
u   convolve_fftc         K` sx   | d k r( t  t t |  ƒ t d <n= | d k rP t  t t |  ƒ t d <n t d j | ƒ ƒ ‚ t j | |  | ƒ S(   uÌ  
    Convolve two models using `~astropy.convolution.convolve_fft`.

    Parameters
    ----------
    model : `~astropy.modeling.core.Model`
        Functional model
    kernel : `~astropy.modeling.core.Model`
        Convolution kernel
    mode : str
        Keyword representing which function to use for convolution.
            * 'convolve_fft' : use `~astropy.convolution.convolve_fft` function.
            * 'convolve' : use `~astropy.convolution.convolve`.
    kwargs : dict
        Keyword arguments to me passed either to `~astropy.convolution.convolve`
        or `~astropy.convolution.convolve_fft` depending on ``mode``.

    Returns
    -------
    default : CompoundModel
        Convolved model
    u   convolve_fftu   convolveu   Mode {} is not supported.(	   R   R   R    R   RV   R)   R*   R   t   _from_operator(   t   modelRB   t   modeR¡   (    (    s;   lib/python2.7/site-packages/astropy/convolution/convolve.pyt   convolve_models  s    (.   t
   __future__R    R   R   R   Rc   t   numpyR2   t	   functoolsR   t   coreR   R   R   R   t   utils.exceptionsR	   t   utils.consoleR
   t   utils.decoratorsR   t    R   R]   t   nddataR   t   modeling.coreR   R   R   t   extern.six.movesR   R   t   __doctest_skip__R<   R(   R,   R/   RV   Rp   R~   R   RX   R    R¤   R¨   (    (    (    s;   lib/python2.7/site-packages/astropy/convolution/convolve.pyt   <module>   s@   ""		ÿ 	ÿ ¦)