aboutsummaryrefslogtreecommitdiff
path: root/data/cut.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-06-11 15:26:21 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-06-11 15:26:21 -0400
commitc3ec750f4a04e3117d658e8275dd3d91d2b0cbe4 (patch)
tree6fb3fcc9425948a13fdc421534b7a00574c1e595 /data/cut.py
parent7e8dbac77ce712846954bdd5f4bfb62b6efaf7df (diff)
downloadtaxi-c3ec750f4a04e3117d658e8275dd3d91d2b0cbe4.tar.gz
taxi-c3ec750f4a04e3117d658e8275dd3d91d2b0cbe4.zip
Add TaxiRemoveTestOnlyClients ; custom dumpmanager enabling multiprocessing
Diffstat (limited to 'data/cut.py')
-rw-r--r--data/cut.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/cut.py b/data/cut.py
index 7853030..fc0b3f9 100644
--- a/data/cut.py
+++ b/data/cut.py
@@ -28,6 +28,7 @@ class TaxiTimeCutScheme(IterationScheme):
c.execute('SELECT trip FROM trip_times WHERE begin >= ? AND begin <= ? AND end >= ?',
(cut - 40000, cut, cut))]
l = l + part
+ random.shuffle(l)
return iter_(l)