o
    8P˜e  ã                   @   sž   d dl Z d dlZd dlZe dd¡Zeddƒeddƒedd	ƒfZed  j ZZed  j	Z
d
 e¡e
fdd„Zeƒ \ZZdjeedZdjee
dZdZdZdS )é    NÚTagzversion datez0.2.1z
2023-08-22z0.2.0z
2021-09-14z0.1.0z
2021-04-23zv{}c                 C   sº   t  ¡ }t  t j t j t¡¡¡ z>d}tj| ¡ tj	d} |  
d¡ ¡ } d| v r;|  d¡dd… \} }| d |¡7 } d}tj| ¡ tj	d}| 
d¡ ¡ }W n   Y t  |¡ | |fS )	z@Grab version and date of the latest commit from a git repositoryzgit describe --tags)Ústderrzutf-8ú-Né   z-{}z$git log -1 --date=short --format=%cd)ÚosÚgetcwdÚchdirÚpathÚdirnameÚ__file__Ú
subprocessÚcheck_outputÚsplitÚDEVNULLÚdecodeÚstripÚformat)ÚversionÚdateZdir_origÚcmdZ
num_commit© r   úI/home/exouser/operations/rsmas_insar/tools/MiaplPy/src/miaplpy/version.pyÚget_version_info   s    
r   zMiaplPy version {v}, date {d})ÚvÚdaq  
_________________________________________________      

  /##      /## /##                     / ## /#######
 | ###    /###|__/|                    | ##| ##__  ##
 | ####  /#### /##|/ ##### /##         | ##| ##  \ ## /##   /##
 | ## ##/## ##| ##| ##__  ### /####### | ##| #######/| ##  | ##
 | ##  ###| ##| ##| ##__  ###| ##__  ##| ##| ##      | ##  | ##
 | ##\  # | ##| ##| ##   \###| ##   \##| ##| ##      | ##  | ##
 | ## \/  | ##| ##|  ##### ##| #######/| ##| ##      |  #######
 |__/     |__/|__/| \____/|_/| ##____/ |__/|__/       \____  ##
                             | ##                     /##  | ## 
                             | ##                    |  ######/         
                             |__/                     \______/
 Miami Non-Linear Phase Linking software in Python   
          MiaplPy {v}, {d}
_________________________________________________
z#https://github.com/insarlab/MiaplPyz1Miami Non-Linear Phase Linking software in Python)r   r   ÚcollectionsÚ
namedtupler   Zrelease_historyr   Ú__version__Úrelease_versionr   Zrelease_dater   r   Zversion_numZversion_dateZversion_descriptionZlogoZwebsiteÚdescriptionr   r   r   r   Ú<module>   s*   ý

þï