# HG changeset patch # User Nicolas Saunier # Date 1721617206 14400 # Node ID 86122f5fe500a85be8fbc3bb3497fa628d111388 # Parent 96c7cfbdd226e9219f81082e8e1d75bf7da584ad correction diff -r 96c7cfbdd226 -r 86122f5fe500 trafficintelligence/moving.py --- a/trafficintelligence/moving.py Sat Jul 20 20:36:15 2024 -0400 +++ b/trafficintelligence/moving.py Sun Jul 21 23:00:06 2024 -0400 @@ -1851,7 +1851,9 @@ def isStationary(self, speedThreshold, distanceThreshold): '''Indicates if object is not moving if speed on average below threshold and final-initial position close enough - or the largest time interval during which the object is stationary (same condition)''' + or the largest interval [t1, t2] during which the object is stationary (same condition) + + Returns time instants''' speeds = self.getSpeeds() if quantile(speeds, 0.5) <= speedThreshold and Point.distanceNorm2(self.getPositionAt(0),self.getPositionAt(-1)) <= distanceThreshold: return True, None @@ -1868,7 +1870,8 @@ j-=1 #incrementI = not incrementI if i