ó
ð¶Wc           @   s/   d  d l  Z  d  d l Z d d d „  ƒ  YZ d S(   iÿÿÿÿNt
   Parametresc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   t   file(   t   selfR   (    (    sK   C:\Users\Léa\Desktop\Genève - A conserver\Simulation\Migrants\parametres.pyt   __init__   s    c         C   sì  t  j  ƒ  } | j t j j t j ƒ  |  j ƒ ƒ | j d d ƒ |  _ | j d d ƒ |  _	 | j d d ƒ |  _
 | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d	 ƒ |  _ | j d d
 ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ | j d d ƒ |  _ t j j |  j ƒ sèt j |  j ƒ n  d  S(   Nt	   Agents_TAt   nb_agents_TAt   nb_migrantst   heurest   cash_min_TAt   cash_max_TAt   prct_invest_achatt	   Agents_EVt   nb_agents_EVt   prct_invest_emploit   cash_min_EVt   cash_max_EVt   salaire_initialt   prix_initialt	   Ping_pongt   gammat   Matrices_adjacencet   proba_matrice_TEt   proba_matrice_AVt   Coupurest   param_coupuret   Productivitet   at
   Iterationst   itt	   Resultatst   output_directory_name(   t   ConfigParsert   readt   ost   patht   joint   getcwdR   t   getfloatR   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   R   t   getintR   t   gett   dossiert   isdirt   mkdir(   R   t   config(    (    sK   C:\Users\Léa\Desktop\Genève - A conserver\Simulation\Migrants\parametres.pyt   parse
   s.    %(   t   __name__t
   __module__R   R,   (    (    (    sK   C:\Users\Léa\Desktop\Genève - A conserver\Simulation\Migrants\parametres.pyR       s   	(    (   R   R!   R    (    (    (    sK   C:\Users\Léa\Desktop\Genève - A conserver\Simulation\Migrants\parametres.pyt   <module>   s   