a
    Ù
þd:  ã                   @   s(   d dl Zg d¢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
   ú`/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/skimage/io/_image_stack.pyr      s    	r   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    	r   )Únumpyr   Ú__all__r   r   r   r
   r
   r
   r   Ú<module>   s   