# HG changeset patch # User Nicolas Saunier # Date 1393489828 18000 # Node ID 16fe641365062e6213c2cf74b2f77864e85c0f45 # Parent dcc821b98efcf595a61861888f2c41ed735478c6 added dictionary diff -r dcc821b98efc -r 16fe64136506 python/pavement.py --- a/python/pavement.py Sun Feb 23 23:18:08 2014 -0500 +++ b/python/pavement.py Thu Feb 27 03:30:28 2014 -0500 @@ -7,6 +7,12 @@ __metaclass__ = type +paintTypes = {0: "Non-existant", + 1: "Eau", + 2: "Epoxy", + 3: "Alkyde", + 4: "Autre"} + durabilities = {1: 98, #96 to 100 2: 85, #75 to 96 3: 72, #50 to 75 @@ -25,8 +31,7 @@ 15: "Aut (PRN)", 25: "Nat (PRN)", 70: "Acces isolees", - 99: "Autres" - } + 99: "Autres"} def caracteristiques(rtss, maintenanceLevel, rtssWeatherStation, fmr, paintType): '''Computes characteristic data for the RTSS (class rtss)