Mercurial Hosting > traffic-intelligence
diff python/indicators.py @ 340:1046b7346886
work in progress on storing indicator values
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 19 Jun 2013 23:35:24 -0400 |
parents | 28661c5887d3 |
children | 2f39c4ed0b62 |
line wrap: on
line diff
--- a/python/indicators.py Wed Jun 19 22:56:21 2013 -0400 +++ b/python/indicators.py Wed Jun 19 23:35:24 2013 -0400 @@ -72,17 +72,6 @@ def getValues(self): return [self.__getitem__(t) for t in self.timeInterval] - def getAngleValues(self): - '''if the indicator is a function of an angle, - transform it to an angle (eg cos) - (no transformation otherwise)''' - from numpy import arccos - values = self.getValues() - if self.isCosine: - return [arccos(c) for c in values] - else: - return values - def plot(self, options = '', xfactor = 1., **kwargs): from matplotlib.pylab import plot,ylim if self.getTimeInterval().length() == 1: