σ
ίΘ[c           @` sU   d  d l  m Z m Z m Z m Z d d l m Z d g Z d e	 f d     YZ
 d S(   i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsi   (   t   registryu	   NDIOMixint	   NDIOMixinc           B` s&   e  Z d  Z e d    Z d   Z RS(   u   
    Mixin class to connect NDData to the astropy input/output registry.

    This mixin adds two methods to its subclasses, ``read`` and ``write``.
    c         O` s   t  j |  | |  S(   u  
        Read and parse gridded N-dimensional data and return as an
        NDData-derived object.

        This function provides the NDDataBase interface to the astropy unified
        I/O layer.  This allows easily reading a file in the supported data
        formats.
        (   t   io_registryt   read(   t   clst   argst   kwargs(    (    s9   lib/python2.7/site-packages/astropy/nddata/mixins/ndio.pyR      s    
c         O` s   t  j |  | |  d S(   u  
        Write a gridded N-dimensional data object out in specified format.

        This function provides the NDDataBase interface to the astropy unified
        I/O layer.  This allows easily writing a file in the supported data
        formats.
        N(   R   t   write(   t   selfR	   R
   (    (    s9   lib/python2.7/site-packages/astropy/nddata/mixins/ndio.pyR      s    (   t   __name__t
   __module__t   __doc__t   classmethodR   R   (    (    (    s9   lib/python2.7/site-packages/astropy/nddata/mixins/ndio.pyR      s   N(   t
   __future__R    R   R   R   t   ioR   R   t   __all__t   objectR   (    (    (    s9   lib/python2.7/site-packages/astropy/nddata/mixins/ndio.pyt   <module>   s   "	