a
    ƒ¼Df†  ã                   @  s~   d dl mZ d dlmZ d dlmZmZ G dd„ deƒZG dd„ deƒZerle	e	e e	e
 e	e e	e f Zdd	œd
d„ZdS )é    )Úannotations)ÚEnum)Ú
NamedTupleÚTYPE_CHECKINGc                   @  s$   e Zd ZdZdZdZdZdZdZdS )ÚAntialiasCombinationé   é   é   é   é   é   N)	Ú__name__Ú
__module__Ú__qualname__ÚSUM_1AGGÚSUM_2AGGÚMINÚMAXÚFIRSTÚLAST© r   r   úa/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/datashader/antialias.pyr      s   r   c                   @  s:   e Zd ZU dZded< ded< dZded< dZded	< d
S )ÚAntialiasStage2zMConfiguration for second-stage combination of a single antialiased reduction.r   ZcombinationÚfloatZzeroFÚboolÚn_reductionÚcategoricalN)r   r   r   Ú__doc__Ú__annotations__r   r   r   r   r   r   r      s
   
r   zUnzippedAntialiasStage2 | None)Úantialias_stage_2c                 C  sf   | sdS | d }d}|D ]$}|t jt jt jt jfv rd} q>qd}|D ]}|t jkrFd} q^qF||fS )z<Information used to perform the correct stage 2 aggregation.)FFr   FT)r   r   r   r   r   r   )r   Zaa_combinationsZuse_2_stage_aggÚcombÚ	overwriter   r   r   Útwo_stage_agg   s     
ÿ
r"   N)Ú
__future__r   Úenumr   Útypingr   r   r   r   Útupler   r   ZUnzippedAntialiasStage2r"   r   r   r   r   Ú<module>   s   	ÿ