Mercurial Hosting > traffic-intelligence
comparison python/moving.py @ 30:418b41056e6c
after merge
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Sat, 13 Feb 2010 18:51:22 -0500 |
parents | 9ae709a2e8d0 |
children | 0d321c23d337 |
comparison
equal
deleted
inserted
replaced
29:ca8e716cc231 | 30:418b41056e6c |
---|---|
256 # def computeVelocities(self): | 256 # def computeVelocities(self): |
257 | 257 |
258 # need for a class representing the indicators, their units, how to print them in graphs... | 258 # need for a class representing the indicators, their units, how to print them in graphs... |
259 class TemporalIndicator: | 259 class TemporalIndicator: |
260 '''Class for temporal indicators | 260 '''Class for temporal indicators |
261 i.e. indicators that take a value at specific instants''' | 261 i.e. indicators that take a value at specific instants |
262 pass | 262 |
263 it should have more information like name, unit''' | |
264 | |
265 def __init__(self, name, values = {}): | |
266 self.name = name | |
267 self.values = values | |
263 | 268 |
264 if __name__ == "__main__": | 269 if __name__ == "__main__": |
265 import doctest | 270 import doctest |
266 import unittest | 271 import unittest |
267 #suite = doctest.DocFileSuite('tests/ubc_utils.txt') | 272 #suite = doctest.DocFileSuite('tests/ubc_utils.txt') |