Mercurial > hg > nsaunier > traffic-intelligence
comparison python/pavement.py @ 665:15e244d2a1b5
corrected bug with circular import for VideoFilenameAddable, moved to base module
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 20 May 2015 13:57:47 +0200 |
| parents | 3058e00887bc |
| children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
| 664:455f9b93819c | 665:15e244d2a1b5 |
|---|---|
| 3 | 3 |
| 4 import utils | 4 import utils |
| 5 | 5 |
| 6 import numpy as np | 6 import numpy as np |
| 7 | 7 |
| 8 __metaclass__ = type | |
| 9 | 8 |
| 10 paintTypes = {0: "Non-existant", | 9 paintTypes = {0: "Non-existant", |
| 11 1: "Eau", | 10 1: "Eau", |
| 12 2: "Epoxy", | 11 2: "Epoxy", |
| 13 3: "Alkyde", | 12 3: "Alkyde", |
| 233 else: | 232 else: |
| 234 ecart_type = None | 233 ecart_type = None |
| 235 | 234 |
| 236 return (nbre_jours_T_negatif,nbre_jours_gel_degel, deltas_T, nbre_jours_gel_consecutifs, ecart_type_T) | 235 return (nbre_jours_T_negatif,nbre_jours_gel_degel, deltas_T, nbre_jours_gel_consecutifs, ecart_type_T) |
| 237 | 236 |
| 238 class RTSS: | 237 class RTSS(object): |
| 239 '''class for data related to a RTSS: | 238 '''class for data related to a RTSS: |
| 240 - agregating pavement marking measurements | 239 - agregating pavement marking measurements |
| 241 - RTSS characteristics from FMR: pavement type, age, AADT, truck AADT | 240 - RTSS characteristics from FMR: pavement type, age, AADT, truck AADT |
| 242 - winter maintenance level from V155 | 241 - winter maintenance level from V155 |
| 243 | 242 |
| 251 def __init__(self, _id, name, data): | 250 def __init__(self, _id, name, data): |
| 252 self.id = _id | 251 self.id = _id |
| 253 self.name = name | 252 self.name = name |
| 254 self.data = data | 253 self.data = data |
| 255 | 254 |
| 256 class MarkingTest: | 255 class MarkingTest(object): |
| 257 '''class for a test site for a given product | 256 '''class for a test site for a given product |
| 258 | 257 |
| 259 including the series of measurements over the years''' | 258 including the series of measurements over the years''' |
| 260 | 259 |
| 261 def __init__(self, _id, paintingDate, paintingType, color, data): | 260 def __init__(self, _id, paintingDate, paintingType, color, data): |
