view python/tests/events.txt @ 554:7d051afcb22d

added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 11 Jul 2014 16:25:57 -0400
parents 000bddf84ad0
children 72174e66aba5
line wrap: on
line source

>>> from events import *
>>> from moving import MovingObject, TimeInterval

>>> objects = [MovingObject(num = i, timeInterval = TimeInterval(0,10)) for i in range(10)]
>>> interactions = createInteractions(objects)
>>> len([i for i in interactions if len(i.roadUserNumbers) == 1])
0
>>> objects2 = [MovingObject(num = i, timeInterval = TimeInterval(0,10)) for i in range(100, 110)]
>>> interactions = createInteractions(objects, objects2)
>>> len([i for i in interactions if len(i.roadUserNumbers) == 1])
0