diff python/tests/moving.txt @ 887:e2452abba0e7

added option to compute PET in safety analysis script, and save in database
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 22 Mar 2017 10:44:24 -0400
parents 84420159c5f4
children 3a06007a4bb7
line wrap: on
line diff
--- a/python/tests/moving.txt	Tue Mar 21 17:51:38 2017 -0400
+++ b/python/tests/moving.txt	Wed Mar 22 10:44:24 2017 -0400
@@ -174,10 +174,13 @@
 >>> o1 = MovingObject.generate(Point(-5.,0.), Point(1.,0.), TimeInterval(0,10))
 >>> o2 = MovingObject.generate(Point(0.,-5.), Point(0.,1.), TimeInterval(0,10))
 >>> MovingObject.computePET(o1, o2, 0.1)
-0.0
+(0.0, 5, 5)
 >>> o2 = MovingObject.generate(Point(0.,-5.), Point(0.,1.), TimeInterval(5,15))
 >>> MovingObject.computePET(o1, o2, 0.1)
-5.0
+(5.0, 5, 10)
+>>> o2 = MovingObject.generate(Point(0.,-5.), Point(0.,1.), TimeInterval(15,30))
+>>> MovingObject.computePET(o1, o2, 0.1)
+(15.0, 5, 20)
 
 >>> t = CurvilinearTrajectory(S = [1., 2., 3., 5.], Y = [0.5, 0.5, 0.6, 0.7], lanes = ['1']*4)
 >>> t.differentiate() # doctest:+ELLIPSIS