o
    c«Ïi:  ã                   @   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ÚnpÚndarrayÚ
ValueErrorr   Úappend)Úimg© r   úa/var/www/addictedbytheproject.nl/epg/venv/lib/python3.10/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
    