a
    ¬J5d]  ã                   @   sH   d Z ddlmZmZ ddlZdejeej eejejf dœdd„ZdS )z2Common data processing tasks between all distancesé    )ÚOptionalÚTupleN)ÚsourcesÚdestinationsÚreturnc                 C   s(   |du r| }t  | ¡} t  |¡}| |fS )z³Pre-process input
    This function ensures ``sources`` and ``destinations`` have at least two
    dimensions, and if ``destinations`` is `None`, set it equal to ``sources``.
    N)ÚnpZ
atleast_2d)r   r   © r   ú`/var/www/html/django/DPS/env/lib/python3.9/site-packages/python_tsp/distances/data_processing.pyÚprocess_input   s
    

r
   )N)Ú__doc__Útypingr   r   Únumpyr   Zndarrayr
   r   r   r   r	   Ú<module>   s    ÿþ