Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/events.py @ 1182:0e5d37b0b9ff
bug corrections
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 01 Apr 2022 15:33:22 -0400 |
parents | b968c33f8c2f |
children | fe35473acee3 |
comparison
equal
deleted
inserted
replaced
1181:b3b1a5dfa17c | 1182:0e5d37b0b9ff |
---|---|
90 's', | 90 's', |
91 '', | 91 '', |
92 's', | 92 's', |
93 's'] | 93 's'] |
94 | 94 |
95 timeIndicators = ['Time to Collision', 'predicted Post Encroachment Time'] | 95 mostSevereIsMinIndicators = ['Distance', 'Time to Collision', 'predicted Post Encroachment Time'] |
96 | 96 |
97 def __init__(self, num = None, timeInterval = None, roaduserNum1 = None, roaduserNum2 = None, roadUser1 = None, roadUser2 = None): | 97 def __init__(self, num = None, timeInterval = None, roaduserNum1 = None, roaduserNum2 = None, roadUser1 = None, roadUser2 = None): |
98 moving.STObject.__init__(self, num, timeInterval) | 98 moving.STObject.__init__(self, num, timeInterval) |
99 if timeInterval is None and roadUser1 is not None and roadUser2 is not None: | 99 if timeInterval is None and roadUser1 is not None and roadUser2 is not None: |
100 self.timeInterval = roadUser1.commonTimeInterval(roadUser2) | 100 self.timeInterval = roadUser1.commonTimeInterval(roadUser2) |