B
    q\x                 @   s$   d dl mZ dgZG dd dZdS )    )registry	NDIOMixinc               @   s$   e Zd ZdZedd Zdd ZdS )r   z
    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| f||S )a  
        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.
        )io_registryread)clsargskwargs r	   9lib/python3.7/site-packages/astropy/nddata/mixins/ndio.pyr      s    
zNDIOMixin.readc             O   s   t j| f|| dS )a  
        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   write)selfr   r   r	   r	   r
   r      s    zNDIOMixin.writeN)__name__
__module____qualname____doc__classmethodr   r   r	   r	   r	   r
   r   
   s   N)Z
astropy.ior   r   __all__r   r	   r	   r	   r
   <module>   s   