U
    ƒ±Ëh:  ã                   @   s*   d dl ZdddgZg Zdd„ Zdd„ ZdS )é    NÚimage_stackÚpushÚpopc                 C   s"   t | tjƒstdƒ‚t | ¡ dS )zxPush an image onto the shared image stack.

    Parameters
    ----------
    img : ndarray
        Image to push.

    z*Can only push ndarrays to the image stack.N)Ú
isinstanceÚnpZndarrayÚ
ValueErrorr   Úappend)Úimg© r
   ú;/tmp/pip-unpacked-wheel-gtraehzf/skimage/io/_image_stack.pyr      s    	c                   C   s   t  ¡ S )zPop an image from the shared image stack.

    Returns
    -------
    img : ndarray
        Image popped from the stack.

    )r   r   r
   r
   r
   r   r      s    	)Znumpyr   Ú__all__r   r   r   r
   r
   r
   r   Ú<module>   s   
