Mercurial Hosting > traffic-intelligence
diff python/sensors.py @ 998:933670761a57
updated code to python 3 (tests pass and scripts run, but non-executed parts of code are probably still not correct)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 May 2018 23:22:48 -0400 |
parents | a8ca72dc1564 |
children |
line wrap: on
line diff
--- a/python/sensors.py Fri May 25 18:15:18 2018 -0400 +++ b/python/sensors.py Sun May 27 23:22:48 2018 -0400 @@ -58,7 +58,7 @@ else: detectionInstants.append(mean(instants)) result = True - for i in xrange(len(sensors)-1): + for i in range(len(sensors)-1): result = result and (detectionInstants[i] <= detectionInstants[i+1]) if not result: return result