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)Zimg r	   I/var/www/html/venv/lib/python3.8/site-packages/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    	)numpyr   __all__r   r   r   r	   r	   r	   r
   <module>   s   
