Mercurial Hosting > traffic-intelligence
changeset 30:418b41056e6c
after merge
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Sat, 13 Feb 2010 18:51:22 -0500 |
parents | ca8e716cc231 |
children | c000f37c316d |
files | python/moving.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/python/moving.py Sat Jan 30 21:43:07 2010 -0500 +++ b/python/moving.py Sat Feb 13 18:51:22 2010 -0500 @@ -258,8 +258,13 @@ # need for a class representing the indicators, their units, how to print them in graphs... class TemporalIndicator: '''Class for temporal indicators - i.e. indicators that take a value at specific instants''' - pass + i.e. indicators that take a value at specific instants + + it should have more information like name, unit''' + + def __init__(self, name, values = {}): + self.name = name + self.values = values if __name__ == "__main__": import doctest