Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/tests/storage.txt @ 1057:a7ada64b8214
corrected storage.py tests
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 09 Jul 2018 16:21:03 -0400 |
| parents | 093e2b892ede |
| children | 8734742c08c0 |
comparison
equal
deleted
inserted
replaced
| 1056:093e2b892ede | 1057:a7ada64b8214 |
|---|---|
| 43 >>> objects = loadTrajectoriesFromSqlite('test.sqlite', 'feature', timeStep = 3) | 43 >>> objects = loadTrajectoriesFromSqlite('test.sqlite', 'feature', timeStep = 3) |
| 44 >>> objects[0].positions.length() | 44 >>> objects[0].positions.length() |
| 45 4 | 45 4 |
| 46 >>> objects[1].positions.length() | 46 >>> objects[1].positions.length() |
| 47 4 | 47 4 |
| 48 >>> remove('test.sqlite') | |
| 49 | |
| 48 >>> align1 = Trajectory.fromPointList([Point(-1, 0), Point(20, 0)]) | 50 >>> align1 = Trajectory.fromPointList([Point(-1, 0), Point(20, 0)]) |
| 49 >>> align2 = Trajectory.fromPointList([Point(-9, -3), Point(6, 3)]) | 51 >>> align2 = Trajectory.fromPointList([Point(-9, -3), Point(6, 3)]) |
| 50 >>> align1.computeCumulativeDistances() | 52 >>> align1.computeCumulativeDistances() |
| 51 >>> align2.computeCumulativeDistances() | 53 >>> align2.computeCumulativeDistances() |
| 52 >>> prepareSplines([align1, align2]) | 54 >>> prepareSplines([align1, align2]) |
