Mercurial > hg > nsaunier > traffic-intelligence
comparison python/pavement.py @ 465:16fe64136506
added dictionary
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 27 Feb 2014 03:30:28 -0500 |
| parents | 28ff95845c65 |
| children | 819eef979d3f |
comparison
equal
deleted
inserted
replaced
| 464:dcc821b98efc | 465:16fe64136506 |
|---|---|
| 4 import utils | 4 import utils |
| 5 | 5 |
| 6 import numpy as np | 6 import numpy as np |
| 7 | 7 |
| 8 __metaclass__ = type | 8 __metaclass__ = type |
| 9 | |
| 10 paintTypes = {0: "Non-existant", | |
| 11 1: "Eau", | |
| 12 2: "Epoxy", | |
| 13 3: "Alkyde", | |
| 14 4: "Autre"} | |
| 9 | 15 |
| 10 durabilities = {1: 98, #96 to 100 | 16 durabilities = {1: 98, #96 to 100 |
| 11 2: 85, #75 to 96 | 17 2: 85, #75 to 96 |
| 12 3: 72, #50 to 75 | 18 3: 72, #50 to 75 |
| 13 4: 32, #15 to 50 | 19 4: 32, #15 to 50 |
| 23 52: "Local 2", | 29 52: "Local 2", |
| 24 53: "Local 3", | 30 53: "Local 3", |
| 25 15: "Aut (PRN)", | 31 15: "Aut (PRN)", |
| 26 25: "Nat (PRN)", | 32 25: "Nat (PRN)", |
| 27 70: "Acces isolees", | 33 70: "Acces isolees", |
| 28 99: "Autres" | 34 99: "Autres"} |
| 29 } | |
| 30 | 35 |
| 31 def caracteristiques(rtss, maintenanceLevel, rtssWeatherStation, fmr, paintType): | 36 def caracteristiques(rtss, maintenanceLevel, rtssWeatherStation, fmr, paintType): |
| 32 '''Computes characteristic data for the RTSS (class rtss) | 37 '''Computes characteristic data for the RTSS (class rtss) |
| 33 maintenanceLevel = pylab.csv2rec('C:\Users\Alexandre\Desktop\Projet_maitrise_recherche\BDD_access\\analyse_donnees_deneigement\\exigence_circuits.txt', delimiter = ';') | 38 maintenanceLevel = pylab.csv2rec('C:\Users\Alexandre\Desktop\Projet_maitrise_recherche\BDD_access\\analyse_donnees_deneigement\\exigence_circuits.txt', delimiter = ';') |
| 34 rtssWeatherStation = pylab.csv2rec('C:\Users\Alexandre\Desktop\Projet_maitrise_recherche\stations_environnement_canada\\rtssWeatherStation\juste_pour_rtss_avec_donnees_entretien_hiv\\rtssWeatherStation_EC3.txt', delimiter = ',') | 39 rtssWeatherStation = pylab.csv2rec('C:\Users\Alexandre\Desktop\Projet_maitrise_recherche\stations_environnement_canada\\rtssWeatherStation\juste_pour_rtss_avec_donnees_entretien_hiv\\rtssWeatherStation_EC3.txt', delimiter = ',') |
