Mercurial > hg > nsaunier > traffic-intelligence
diff python/traffic_engineering.py @ 302:9d88a4d97473
corrected bug in compute-homography
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 18 Mar 2013 23:37:45 -0400 |
| parents | f65b828e5521 |
| children | 539e2b4cfaa3 |
line wrap: on
line diff
--- a/python/traffic_engineering.py Mon Mar 11 01:07:08 2013 -0400 +++ b/python/traffic_engineering.py Mon Mar 18 23:37:45 2013 -0400 @@ -3,6 +3,8 @@ from math import ceil +import prediction + __metaclass__ = type @@ -11,8 +13,8 @@ ######################### class Vehicle: - 'Generic vehicle class - 1D coordinates for now' + '''Generic vehicle class + 1D coordinates for now''' class PredictedTrajectory1D(prediction.PredictedTrajectory): def __init__(self, initialPosition, initialSpeed, control, maxSpeed = None): self.control = control @@ -159,6 +161,7 @@ self.equivalents = equivalents self.nLanes = nLanes # unused else: + print('Proportions do not sum to 1') pass def getPCUVolume(self):
