o
    Nrf                     @   sF   d dl mZ d dlZd dlZd dlmZ dd Zedkr!e  dS dS )    )print_functionN)teec                  C   s   t jdd} |  }tjD ]M}z.g }|  }t|d t|d kr3|d |d g|dd   }n|}td	| W q t
yZ } ztd|| tjd W Y d }~qd }~ww d S )	Nz
    
    python make_triangular.py

    Make sure that the coordinates passed in are triangular. Sorts the first two
    columns so that the resulting coordinates are triangular.

)descriptionr         	z	KeyError:)file)argparseArgumentParser
parse_argssysstdinstripsplitintprintjoinKeyErrorstderr)parserargslineZline_outputZ
line_partsZ	out_partsZke r   e/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/../../../bin/make_triangular.pymain	   s   	
"r   __main__)
__future__r   r   r	   	itertoolsr   r   __name__r   r   r   r   <module>   s   
