Mercurial Hosting > traffic-intelligence
diff python/indicators.py @ 661:dc70d9e711f5
some method name change and new methods for features in objects (MovingObject) and methods to access indicator values in interactions
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 18 May 2015 13:53:25 +0200 |
parents | 3058e00887bc |
children | 15e244d2a1b5 |
line wrap: on
line diff
--- a/python/indicators.py Fri May 15 23:09:49 2015 +0200 +++ b/python/indicators.py Mon May 18 13:53:25 2015 +0200 @@ -39,10 +39,10 @@ def empty(self): return len(self.values) == 0 - def __getitem__(self, i): - 'Returns ith value in time interval' - if i in self.values.keys(): - return self.values[i] + def __getitem__(self, t): + 'Returns the value at time t' + if t in self.values.keys(): + return self.values[t] else: return None