In [1]:
import emission.storage.decorations.location_queries as lq
In [2]:
import logging
logging.getLogger().setLevel(logging.DEBUG)
In [3]:
reload(lq)
Out[3]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>
In [4]:
import emission.analysis.classification.cleaning.location_smoothing as ls
In [5]:
%matplotlib inline
In [6]:
lq.get_uuid_list()
Out[6]:
[UUID('0763de67-f61e-3f5d-90e7-518e69793954'),
UUID('f955cff1-8fb8-3b42-8776-6d8874e5b90a'),
UUID('b0d937d0-70ef-305e-9563-440369012b39')]
In [7]:
import datetime as pydt
In [8]:
import pytz
In [9]:
get_jan_dt = lambda date: pydt.datetime(2015,7,date,tzinfo=pytz.timezone("America/Los_Angeles"))
In [10]:
get_jul_dt = lambda date: pydt.datetime(2015,7,date,tzinfo=pytz.timezone("America/Los_Angeles"))
In [11]:
get_aug_dt = lambda date: pydt.datetime(2015,8,date,tzinfo=pytz.timezone("America/Los_Angeles"))
In [12]:
import emission.analysis.plotting.leaflet_osm.our_plotter as lo
In [13]:
reload(lo)
Out[13]:
<module 'emission.analysis.plotting.leaflet_osm.our_plotter' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/plotting/leaflet_osm/our_plotter.pyc'>
In [14]:
import emission.core.get_database as edb
In [15]:
from attrdict import AttrDict
In [16]:
import pandas as pd
In [17]:
import emission.analysis.plotting.leaflet_osm.ipython_helper as ipy
In the previous data collection, it looks like the last entries before a trip end detection all had high accuracies. This means that simply filtering by accuracy is not good enough. Let us take a look at the newer data to see if we still see that behavior.
In [18]:
import emission.core.get_database as edb
from uuid import UUID
import attrdict as ad
import datetime as pydt
import emission.analysis.point_features as pf
In [19]:
myUUID = UUID('0763de67-f61e-3f5d-90e7-518e69793954')
In [20]:
reload(lq)
Out[20]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>
Our algorithm:
In [21]:
import emission.analysis.classification.segmentation.trip_segmentation as ts
In [22]:
reload(ts)
Out[22]:
<module 'emission.analysis.classification.segmentation.trip_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/trip_segmentation.pyc'>
In [23]:
import emission.analysis.classification.segmentation.section_segmentation as ss
In [24]:
reload(ss)
Out[24]:
<module 'emission.analysis.classification.segmentation.section_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/section_segmentation.pyc'>
In [25]:
import emission.analysis.classification.cleaning.speed_outlier_detection as cso
import emission.analysis.classification.cleaning.jump_smoothing as cjs
In [26]:
reload(cjs)
Out[26]:
<module 'emission.analysis.classification.cleaning.jump_smoothing' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/cleaning/jump_smoothing.pyc'>
In [27]:
my_points_time_df_aug_22 = lq.get_plottable_df(myUUID, "time", get_aug_dt(22), get_aug_dt(23))
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440230400000.0}}, {'data.mTime': {'$lt': 1440316800000.0}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
In [28]:
my_segment_points_aug_22 = ts.segment_into_trips(my_points_time_df_aug_22)
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (194, 29) to (194, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
------------------------------2015-08-22 11:04:55------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 11:05:25------------------------------
last5MinsDistances = [ 167.08775733] with length 1
last10PointsDistances = [ 167.08775733 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 11:05:55------------------------------
last5MinsDistances = [ 245.18161917 78.66786285] with length 2
last10PointsDistances = [ 245.18161917 78.66786285 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 11:06:25------------------------------
last5MinsDistances = [ 323.23981373 156.76505698 78.14045979] with length 3
last10PointsDistances = [ 323.23981373 156.76505698 78.14045979 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 11:06:55------------------------------
last5MinsDistances = [ 451.59412412 284.52089496 207.29214823 131.11543239] with length 4
last10PointsDistances = [ 451.59412412 284.52089496 207.29214823 131.11543239 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 11:07:25------------------------------
last5MinsDistances = [ 554.48221644 387.55995095 309.32111533 231.43669464 105.61718731] with length 5
last10PointsDistances = [ 554.48221644 387.55995095 309.32111533 231.43669464 105.61718731
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 11:07:55------------------------------
last5MinsDistances = [ 655.83061351 490.15218384 415.56699891 341.85233318 211.6102008
135.57556495] with length 6
last10PointsDistances = [ 655.83061351 490.15218384 415.56699891 341.85233318 211.6102008
135.57556495 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 11:08:25------------------------------
last5MinsDistances = [ 630.3860868 463.76654262 387.66928211 312.18320207 181.07590431
96.71215297 40.02511346] with length 7
last10PointsDistances = [ 630.3860868 463.76654262 387.66928211 312.18320207 181.07590431
96.71215297 40.02511346 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 11:08:55------------------------------
last5MinsDistances = [ 653.14708898 487.33589693 412.562599 338.62715324 208.22158497
131.25476801 4.49289349 35.54456469] with length 8
last10PointsDistances = [ 653.14708898 487.33589693 412.562599 338.62715324 208.22158497
131.25476801 4.49289349 35.54456469 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 653.147088975, last10PointsDistance.max() = 653.147088975
------------------------------2015-08-22 11:09:25------------------------------
last5MinsDistances = [ 657.1861857 491.62830997 417.2121607 343.70016645 213.62196384
138.5585164 3.40418989 43.28375018 7.84336252] with length 9
last10PointsDistances = [ 491.62830997 417.2121607 343.70016645 213.62196384 138.5585164
3.40418989 43.28375018 7.84336252 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 657.186185697, last10PointsDistance.max() = 491.628309971
------------------------------2015-08-22 11:09:55------------------------------
last5MinsDistances = [ 511.38798832 437.73616167 365.07547553 235.70163162 162.70827317
27.19696476 67.08968249 31.61461132 24.1499318 ] with length 9
last10PointsDistances = [ 437.73616167 365.07547553 235.70163162 162.70827317 27.19696476
67.08968249 31.61461132 24.1499318 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 511.387988316, last10PointsDistance.max() = 437.73616167
------------------------------2015-08-22 11:10:25------------------------------
last5MinsDistances = [ 433.11482642 360.08670359 230.37794779 156.01216627 20.43757808
60.15410481 24.78292545 17.56353065 7.05552799] with length 9
last10PointsDistances = [ 360.08670359 230.37794779 156.01216627 20.43757808 60.15410481
24.78292545 17.56353065 7.05552799 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 433.114826421, last10PointsDistance.max() = 360.086703586
------------------------------2015-08-22 11:10:55------------------------------
last5MinsDistances = [ 331.43880038 201.21177377 126.47644483 10.41359988 32.69032585
7.80582439 12.58882627 36.42473203 30.06672601] with length 9
last10PointsDistances = [ 201.21177377 126.47644483 10.41359988 32.69032585 7.80582439
12.58882627 36.42473203 30.06672601 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 331.438800383, last10PointsDistance.max() = 201.211773774
------------------------------2015-08-22 11:11:25------------------------------
last5MinsDistances = [ 216.35245789 141.46892509 6.06922149 46.08937665 10.5612095
2.91792121 21.24175343 14.64935267 15.45986788] with length 9
last10PointsDistances = [ 141.46892509 6.06922149 46.08937665 10.5612095 2.91792121
21.24175343 14.64935267 15.45986788 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 216.35245789, last10PointsDistance.max() = 141.468925093
------------------------------2015-08-22 11:11:55------------------------------
last5MinsDistances = [ 154.35414134 18.79775933 58.41928992 23.10433386 16.00955636
8.85096481 1.7987875 28.56397351 13.1095551 ] with length 9
last10PointsDistances = [ 18.79775933 58.41928992 23.10433386 16.00955636 8.85096481
1.7987875 28.56397351 13.1095551 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 154.354141337, last10PointsDistance.max() = 58.4192899223
------------------------------2015-08-22 11:12:25------------------------------
last5MinsDistances = [ 47.7174618 10.01364805 43.2392481 51.08169963 74.2619482
67.22874289 41.4883046 53.7578907 65.45126674] with length 9
last10PointsDistances = [ 10.01364805 43.2392481 51.08169963 74.2619482 67.22874289
41.4883046 53.7578907 65.45126674 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 74.2619481967, last10PointsDistance.max() = 74.2619481967
Found trip end at 2015-08-22 11:07:55
------------------------------2015-08-22 11:12:55------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 11:13:25------------------------------
last5MinsDistances = [ 6.56402592] with length 1
last10PointsDistances = [ 6.56402592 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 11:13:55------------------------------
last5MinsDistances = [ 11.0155664 7.05023627] with length 2
last10PointsDistances = [ 11.0155664 7.05023627 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 11:14:25------------------------------
last5MinsDistances = [ 1.66104726 7.06948838 12.30766923] with length 3
last10PointsDistances = [ 1.66104726 7.06948838 12.30766923 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 11:14:55------------------------------
last5MinsDistances = [ 49.28865709 43.74518015 38.38569659 50.39822194] with length 4
last10PointsDistances = [ 49.28865709 43.74518015 38.38569659 50.39822194 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 11:15:25------------------------------
last5MinsDistances = [ 25.14504274 19.09992623 15.02735038 26.03330886 24.98138171] with length 5
last10PointsDistances = [ 25.14504274 19.09992623 15.02735038 26.03330886 24.98138171 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 11:15:55------------------------------
last5MinsDistances = [ 41.35175683 36.09748642 30.36414786 42.54110189 8.46384249
18.05774574] with length 6
last10PointsDistances = [ 41.35175683 36.09748642 30.36414786 42.54110189 8.46384249
18.05774574 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 11:16:25------------------------------
last5MinsDistances = [ 22.87053667 17.66027129 11.94802682 24.03515071 26.44046958
5.62303199 18.50864764] with length 7
last10PointsDistances = [ 22.87053667 17.66027129 11.94802682 24.03515071 26.44046958
5.62303199 18.50864764 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 11:16:55------------------------------
last5MinsDistances = [ 71.62246837 67.71389819 60.98214771 73.09641907 31.13780207
51.87302792 34.41774414 50.58379344] with length 8
last10PointsDistances = [ 71.62246837 67.71389819 60.98214771 73.09641907 31.13780207
51.87302792 34.41774414 50.58379344 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 73.0964190654, last10PointsDistance.max() = 73.0964190654
Found trip end at 2015-08-22 11:12:55
------------------------------2015-08-22 11:17:25------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 11:21:16------------------------------
last5MinsDistances = [ 188.63545821] with length 1
last10PointsDistances = [ 188.63545821 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 11:21:47------------------------------
last5MinsDistances = [ 380.51638475 195.30397156] with length 2
last10PointsDistances = [ 380.51638475 195.30397156 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 11:22:21------------------------------
last5MinsDistances = [ 491.90791967 312.44058782 121.34209729] with length 3
last10PointsDistances = [ 491.90791967 312.44058782 121.34209729 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 11:22:51------------------------------
last5MinsDistances = [ 418.98263044 224.55499501 108.65832403] with length 3
last10PointsDistances = [ 600.27420322 418.98263044 224.55499501 108.65832403 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 11:23:21------------------------------
last5MinsDistances = [ 527.58591802 332.71488527 217.31269283 108.87774369] with length 4
last10PointsDistances = [ 709.12480341 527.58591802 332.71488527 217.31269283 108.87774369
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 11:23:51------------------------------
last5MinsDistances = [ 637.92851982 443.1732445 326.81124594 218.97435565 110.48315869] with length 5
last10PointsDistances = [ 818.68154321 637.92851982 443.1732445 326.81124594 218.97435565
110.48315869 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 11:24:21------------------------------
last5MinsDistances = [ 711.58327395 516.93734768 400.08889936 292.6008661 184.29519662
73.82744101] with length 6
last10PointsDistances = [ 891.77889235 711.58327395 516.93734768 400.08889936 292.6008661
184.29519662 73.82744101 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 11:24:51------------------------------
last5MinsDistances = [ 722.06239393 526.98873801 417.46523355 309.13856891 203.00242792
109.78137316 80.52873647] with length 7
last10PointsDistances = [ 906.89267226 722.06239393 526.98873801 417.46523355 309.13856891
203.00242792 109.78137316 80.52873647 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 722.06239393, last10PointsDistance.max() = 906.892672261
------------------------------2015-08-22 11:25:25------------------------------
last5MinsDistances = [ 720.17851966 525.01290415 414.76371763 306.30211609 199.58866167
104.27841561 73.55986204 7.00066904] with length 8
last10PointsDistances = [ 720.17851966 525.01290415 414.76371763 306.30211609 199.58866167
104.27841561 73.55986204 7.00066904 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 720.178519656, last10PointsDistance.max() = 720.178519656
------------------------------2015-08-22 11:25:55------------------------------
last5MinsDistances = [ 718.31632951 523.13049166 412.70343154 304.21499534 197.38019716
101.73795649 71.52528973 9.29122853 2.56682539] with length 9
last10PointsDistances = [ 523.13049166 412.70343154 304.21499534 197.38019716 101.73795649
71.52528973 9.29122853 2.56682539 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 718.316329509, last10PointsDistance.max() = 523.13049166
------------------------------2015-08-22 11:26:25------------------------------
last5MinsDistances = [ 522.4445867 411.79890277 303.27826802 196.28146301 100.0051537
69.37821199 11.46119654 4.59913661 2.17841604] with length 9
last10PointsDistances = [ 411.79890277 303.27826802 196.28146301 100.0051537 69.37821199
11.46119654 4.59913661 2.17841604 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 522.444586698, last10PointsDistance.max() = 411.798902774
------------------------------2015-08-22 11:26:55------------------------------
last5MinsDistances = [ 411.86135845 303.33619223 196.31486489 99.92257064 69.10850568
11.69074559 4.79124346 2.42778626 0.30139389] with length 9
last10PointsDistances = [ 303.33619223 196.31486489 99.92257064 69.10850568 11.69074559
4.79124346 2.42778626 0.30139389 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 411.861358452, last10PointsDistance.max() = 303.336192228
------------------------------2015-08-22 11:27:25------------------------------
last5MinsDistances = [ 303.77419103 196.63569241 99.67025575 67.84408526 12.78564734
5.78953637 3.72891182 1.80137948 1.50123549] with length 9
last10PointsDistances = [ 196.63569241 99.67025575 67.84408526 12.78564734 5.78953637
3.72891182 1.80137948 1.50123549 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 303.774191026, last10PointsDistance.max() = 196.635692411
------------------------------2015-08-22 11:27:55------------------------------
last5MinsDistances = [ 196.87978638 99.78557574 67.64788138 12.94018257 5.93959841
3.98893161 2.15261661 1.85604031 0.38735098] with length 9
last10PointsDistances = [ 99.78557574 67.64788138 12.94018257 5.93959841 3.98893161
2.15261661 1.85604031 0.38735098 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 196.879786379, last10PointsDistance.max() = 99.7855757372
------------------------------2015-08-22 11:28:25------------------------------
last5MinsDistances = [ 99.33551411 64.87784242 15.6745175 8.79743482 7.24059047
5.50893966 5.21022549 3.71046623 3.35865617] with length 9
last10PointsDistances = [ 64.87784242 15.6745175 8.79743482 7.24059047 5.50893966
5.21022549 3.71046623 3.35865617 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 99.3355141143, last10PointsDistance.max() = 64.8778424155
Found trip end at 2015-08-22 11:23:51
------------------------------2015-08-22 11:28:55------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 11:29:25------------------------------
last5MinsDistances = [ 2.66961396] with length 1
last10PointsDistances = [ 2.66961396 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 11:29:55------------------------------
last5MinsDistances = [ 0. 2.66961396] with length 2
last10PointsDistances = [ 0. 2.66961396 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 11:30:25------------------------------
last5MinsDistances = [ 0.03774898 2.63585281 0.03774898] with length 3
last10PointsDistances = [ 0.03774898 2.63585281 0.03774898 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 11:30:55------------------------------
last5MinsDistances = [ 0.49881565 2.17958171 0.49881565 0.46278081] with length 4
last10PointsDistances = [ 0.49881565 2.17958171 0.49881565 0.46278081 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 11:31:25------------------------------
last5MinsDistances = [ 3.31591632 0.64710526 3.31591632 3.28196304 2.82447549] with length 5
last10PointsDistances = [ 3.31591632 0.64710526 3.31591632 3.28196304 2.82447549 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 11:31:55------------------------------
last5MinsDistances = [ 2.30175194 0.37545885 2.30175194 2.26853133 1.81557514 1.02051445] with length 6
last10PointsDistances = [ 2.30175194 0.37545885 2.30175194 2.26853133 1.81557514 1.02051445
0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 11:32:26------------------------------
last5MinsDistances = [ 3.15893673 0.48933743 3.15893673 3.12518937 2.66873673 0.16181868
0.86074675] with length 7
last10PointsDistances = [ 3.15893673 0.48933743 3.15893673 3.12518937 2.66873673 0.16181868
0.86074675 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 11:32:56------------------------------
last5MinsDistances = [ 0.66146701 3.26609849 0.66146701 0.68386211 1.09756376 3.90693939
2.90755657 3.75377224] with length 8
last10PointsDistances = [ 0.66146701 3.26609849 0.66146701 0.68386211 1.09756376 3.90693939
2.90755657 3.75377224 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3.90693939282, last10PointsDistance.max() = 3.90693939282
Found trip end at 2015-08-22 11:28:55
------------------------------2015-08-22 11:33:26------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 11:33:56------------------------------
last5MinsDistances = [ 3.14805631] with length 1
last10PointsDistances = [ 3.14805631 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 11:34:26------------------------------
last5MinsDistances = [ 0.18874489 2.98002403] with length 2
last10PointsDistances = [ 0.18874489 2.98002403 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 14:57:05------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 136.14306039 133.37590807 135.95441501 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 14:57:37------------------------------
last5MinsDistances = [ 135.233481] with length 1
last10PointsDistances = [ 271.23971382 268.42229806 271.05096899 135.233481 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 14:58:09------------------------------
last5MinsDistances = [ 148.48549357 13.30787895] with length 2
last10PointsDistances = [ 284.5214605 281.70812024 284.33271697 148.48549357 13.30787895
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 14:58:41------------------------------
last5MinsDistances = [ 218.58483564 83.48032631 70.17753965] with length 3
last10PointsDistances = [ 354.67191362 351.86662299 354.48317805 218.58483564 83.48032631
70.17753965 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 14:59:02------------------------------
last5MinsDistances = [ 272.09330468 147.16818875 135.28695437 82.10388347] with length 4
last10PointsDistances = [ 406.05310905 403.52852517 405.86737751 272.09330468 147.16818875
135.28695437 82.10388347 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 14:59:07------------------------------
last5MinsDistances = [ 266.7032751 140.01252564 127.88076923 72.89672662 9.43823793] with length 5
last10PointsDistances = [ 401.20820579 398.64632691 401.02183744 266.7032751 140.01252564
127.88076923 72.89672662 9.43823793 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 266.703275104, last10PointsDistance.max() = 401.20820579
------------------------------2015-08-22 14:59:43------------------------------
last5MinsDistances = [ 216.80826176 82.99459526 69.83957248 13.68045196 72.5495944
63.71401236] with length 6
last10PointsDistances = [ 350.17531116 352.7349923 216.80826176 82.99459526 69.83957248
13.68045196 72.5495944 63.71401236 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 216.808261757, last10PointsDistance.max() = 352.734992297
------------------------------2015-08-22 15:00:13------------------------------
last5MinsDistances = [ 229.0827203 94.42458284 81.13441969 12.7275622 70.43599144
61.10712019 13.99422419] with length 7
last10PointsDistances = [ 365.03630254 229.0827203 94.42458284 81.13441969 12.7275622
70.43599144 61.10712019 13.99422419 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 229.082720298, last10PointsDistance.max() = 365.036302536
------------------------------2015-08-22 15:00:43------------------------------
last5MinsDistances = [ 259.70568852 128.06979335 115.16957547 52.05002106 34.70066902
25.51145596 46.14783976 39.4291129 ] with length 8
last10PointsDistances = [ 259.70568852 128.06979335 115.16957547 52.05002106 34.70066902
25.51145596 46.14783976 39.4291129 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 259.705688521, last10PointsDistance.max() = 259.705688521
------------------------------2015-08-22 15:01:13------------------------------
last5MinsDistances = [ 253.1117413 120.09278097 106.99543061 41.40284 45.76888068
36.41114678 37.21050534 28.67818672 11.5213624 ] with length 9
last10PointsDistances = [ 120.09278097 106.99543061 41.40284 45.76888068 36.41114678
37.21050534 28.67818672 11.5213624 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 253.1117413, last10PointsDistance.max() = 120.092780974
------------------------------2015-08-22 15:01:43------------------------------
last5MinsDistances = [ 257.14666744 124.33699931 111.26358571 45.78058664 42.8387183
33.61954354 41.52830681 33.05336456 8.14128816 4.40668917] with length 10
last10PointsDistances = [ 111.26358571 45.78058664 42.8387183 33.61954354 41.52830681
33.05336456 8.14128816 4.40668917 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 257.146667437, last10PointsDistance.max() = 111.263585706
------------------------------2015-08-22 15:02:13------------------------------
last5MinsDistances = [ 129.17045803 116.217565 52.25116317 36.05990019 27.01378156
46.91780654 39.5633144 2.2992101 11.10401379 7.15658415] with length 10
last10PointsDistances = [ 52.25116317 36.05990019 27.01378156 46.91780654 39.5633144
2.2992101 11.10401379 7.15658415 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 129.170458026, last10PointsDistance.max() = 52.2511631733
------------------------------2015-08-22 15:02:43------------------------------
last5MinsDistances = [ 107.87183737 41.39334622 47.4756525 38.18118527 38.03241644
28.68301315 12.87905932 2.52920355 4.88818198 12.04230415] with length 10
last10PointsDistances = [ 47.4756525 38.18118527 38.03241644 28.68301315 12.87905932
2.52920355 4.88818198 12.04230415 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 107.871837374, last10PointsDistance.max() = 47.4756525002
------------------------------2015-08-22 15:03:13------------------------------
last5MinsDistances = [ 53.69797748 34.12144242 25.08798376 47.99962698 41.04261453
1.94510784 12.79754519 9.01323646 1.9392105 13.88193831] with length 10
last10PointsDistances = [ 25.08798376 47.99962698 41.04261453 1.94510784 12.79754519
9.01323646 1.9392105 13.88193831 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 53.6979774756, last10PointsDistance.max() = 47.9996269785
Found trip end at 2015-08-22 14:58:41
------------------------------2015-08-22 15:03:43------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:04:13------------------------------
last5MinsDistances = [ 5.04344461] with length 1
last10PointsDistances = [ 5.04344461 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 15:04:43------------------------------
last5MinsDistances = [ 5.92613426 9.00345512] with length 2
last10PointsDistances = [ 5.92613426 9.00345512 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 15:05:13------------------------------
last5MinsDistances = [ 4.96543722 8.4163822 1.04720333] with length 3
last10PointsDistances = [ 4.96543722 8.4163822 1.04720333 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 15:05:43------------------------------
last5MinsDistances = [ 5.52961886 2.80453194 10.77876324 10.00486348] with length 4
last10PointsDistances = [ 5.52961886 2.80453194 10.77876324 10.00486348 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 15:06:13------------------------------
last5MinsDistances = [ 3.68721387 7.58434635 2.37566921 1.33906627 8.91815999] with length 5
last10PointsDistances = [ 3.68721387 7.58434635 2.37566921 1.33906627 8.91815999 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 15:06:43------------------------------
last5MinsDistances = [ 2.69169634 7.28614534 3.79099283 2.74424323 8.18827615 1.43635004] with length 6
last10PointsDistances = [ 2.69169634 7.28614534 3.79099283 2.74424323 8.18827615 1.43635004
0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 15:07:13------------------------------
last5MinsDistances = [ 27.31341087 26.03215521 33.23952578 32.26551889 23.33354175
30.95211428 29.69993081] with length 7
last10PointsDistances = [ 27.31341087 26.03215521 33.23952578 32.26551889 23.33354175
30.95211428 29.69993081 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 15:07:43------------------------------
last5MinsDistances = [ 35.82261045 34.28231107 41.74674953 40.78284824 31.64963832
39.47609953 38.23925931 8.56367477] with length 8
last10PointsDistances = [ 35.82261045 34.28231107 41.74674953 40.78284824 31.64963832
39.47609953 38.23925931 8.56367477 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 41.7467495337, last10PointsDistance.max() = 41.7467495337
Found trip end at 2015-08-22 15:03:43
------------------------------2015-08-22 15:16:24------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:16:55------------------------------
last5MinsDistances = [ 46.73120854] with length 1
last10PointsDistances = [ 46.73120854 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 15:17:25------------------------------
last5MinsDistances = [ 40.90019209 5.87852948] with length 2
last10PointsDistances = [ 40.90019209 5.87852948 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 15:17:55------------------------------
last5MinsDistances = [ 249.19902031 278.65292222 275.23105557] with length 3
last10PointsDistances = [ 249.19902031 278.65292222 275.23105557 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 15:18:28------------------------------
last5MinsDistances = [ 293.84096669 326.81862508 322.98859949 54.78522577] with length 4
last10PointsDistances = [ 293.84096669 326.81862508 322.98859949 54.78522577 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 15:18:45------------------------------
last5MinsDistances = [ 296.41698602 329.77372438 325.89673118 58.96679131 4.52960025] with length 5
last10PointsDistances = [ 296.41698602 329.77372438 325.89673118 58.96679131 4.52960025
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 15:19:27------------------------------
last5MinsDistances = [ 468.81117758 498.02301534 494.75952172 219.7896852 178.23924915
176.71296657] with length 6
last10PointsDistances = [ 468.81117758 498.02301534 494.75952172 219.7896852 178.23924915
176.71296657 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 15:19:53------------------------------
last5MinsDistances = [ 503.26082258 541.01100319 536.61888506 275.55991688 221.14558177
217.27343206 138.29468669] with length 7
last10PointsDistances = [ 503.26082258 541.01100319 536.61888506 275.55991688 221.14558177
217.27343206 138.29468669 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 15:20:25------------------------------
last5MinsDistances = [ 586.01901766 623.27928169 618.96662438 354.23496582 300.61583988
296.98077059 180.33517775 83.12663928] with length 8
last10PointsDistances = [ 586.01901766 623.27928169 618.96662438 354.23496582 300.61583988
296.98077059 180.33517775 83.12663928 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 623.279281688, last10PointsDistance.max() = 623.279281688
------------------------------2015-08-22 15:20:56------------------------------
last5MinsDistances = [ 569.70488462 607.16289551 602.82084827 339.06112149 285.21266232
281.51793613 171.3640715 66.57488055 16.75462181] with length 9
last10PointsDistances = [ 607.16289551 602.82084827 339.06112149 285.21266232 281.51793613
171.3640715 66.57488055 16.75462181 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 607.16289551, last10PointsDistance.max() = 607.16289551
------------------------------2015-08-22 15:21:12------------------------------
last5MinsDistances = [ 563.12169616 600.62318183 596.27425376 332.79605528 278.88139306
275.1687455 167.46947696 59.95955436 23.3468231 6.62623384] with length 10
last10PointsDistances = [ 596.27425376 332.79605528 278.88139306 275.1687455 167.46947696
59.95955436 23.3468231 6.62623384 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 600.623181828, last10PointsDistance.max() = 596.274253762
------------------------------2015-08-22 15:21:44------------------------------
last5MinsDistances = [ 711.98256477 708.04246299 435.9748312 385.29938962 382.24414394
230.5083013 184.02974803 106.77024462 122.57660623 128.61777054] with length 10
last10PointsDistances = [ 435.9748312 385.29938962 382.24414394 230.5083013 184.02974803
106.77024462 122.57660623 128.61777054 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 711.982564774, last10PointsDistance.max() = 435.974831196
------------------------------2015-08-22 15:22:16------------------------------
last5MinsDistances = [ 731.41719151 460.49649554 409.15507448 405.97739149 257.58032479
202.31974299 121.28890057 137.87249006 144.2960072 27.98677045] with length 10
last10PointsDistances = [ 409.15507448 405.97739149 257.58032479 202.31974299 121.28890057
137.87249006 144.2960072 27.98677045 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 731.417191506, last10PointsDistance.max() = 409.155074485
------------------------------2015-08-22 15:22:48------------------------------
last5MinsDistances = [ 471.67568939 423.64294665 420.99533896 256.54193967 236.51933979
164.54220533 179.42720117 185.02374942 60.53903312 65.21750873] with length 10
last10PointsDistances = [ 420.99533896 256.54193967 236.51933979 164.54220533 179.42720117
185.02374942 60.53903312 65.21750873 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 471.675689388, last10PointsDistance.max() = 420.995338955
------------------------------2015-08-22 15:23:19------------------------------
last5MinsDistances = [ 432.41480535 429.6656565 267.43468982 240.56731453 165.74187566
181.22685692 187.08874516 59.30911538 57.51704279 14.76060152] with length 10
last10PointsDistances = [ 267.43468982 240.56731453 165.74187566 181.22685692 187.08874516
59.30911538 57.51704279 14.76060152 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 432.41480535, last10PointsDistance.max() = 267.43468982
------------------------------2015-08-22 15:23:51------------------------------
last5MinsDistances = [ 269.89199652 243.190287 168.25078839 183.76558033 189.63993204
61.74167501 59.19758747 16.11510043 2.65348249] with length 9
last10PointsDistances = [ 243.190287 168.25078839 183.76558033 189.63993204 61.74167501
59.19758747 16.11510043 2.65348249 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 269.891996522, last10PointsDistance.max() = 243.190287001
------------------------------2015-08-22 15:24:23------------------------------
last5MinsDistances = [ 279.29739132 239.91704251 161.20304849 177.43598467 183.65682658
56.00309138 42.78360087 38.65839641 24.57883273 24.52307515] with length 10
last10PointsDistances = [ 161.20304849 177.43598467 183.65682658 56.00309138 42.78360087
38.65839641 24.57883273 24.52307515 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 279.297391315, last10PointsDistance.max() = 183.656826583
------------------------------2015-08-22 15:24:52------------------------------
last5MinsDistances = [ 236.29451318 159.80645965 175.61229831 181.6246756 53.04664087
47.71169179 23.9117534 10.81391257 11.81218949 14.88571435] with length 10
last10PointsDistances = [ 175.61229831 181.6246756 53.04664087 47.71169179 23.9117534
10.81391257 11.81218949 14.88571435 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 236.294513176, last10PointsDistance.max() = 181.6246756
------------------------------2015-08-22 15:25:24------------------------------
last5MinsDistances = [ 162.85118051 178.71595421 184.7550549 56.14071613 49.45499589
25.60834399 11.4011934 11.59049733 13.18758385 3.57311328] with length 10
last10PointsDistances = [ 184.7550549 56.14071613 49.45499589 25.60834399 11.4011934
11.59049733 13.18758385 3.57311328 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 184.755054903, last10PointsDistance.max() = 184.755054903
------------------------------2015-08-22 15:25:56------------------------------
last5MinsDistances = [ 183.48505176 189.42664018 61.09917194 56.7509019 20.04821511
5.41499978 4.18877153 20.48795382 9.04609476 7.90489071] with length 10
last10PointsDistances = [ 61.09917194 56.7509019 20.04821511 5.41499978 4.18877153
20.48795382 9.04609476 7.90489071 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 189.42664018, last10PointsDistance.max() = 61.0991719363
------------------------------2015-08-22 15:26:12------------------------------
last5MinsDistances = [ 187.30902913 59.0121222 55.11266696 19.30949065 4.58498594
4.52696372 20.15649069 7.45657893 7.09234934 2.13590992] with length 10
last10PointsDistances = [ 55.11266696 19.30949065 4.58498594 4.52696372 20.15649069
7.45657893 7.09234934 2.13590992 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 187.309029131, last10PointsDistance.max() = 55.1126669565
------------------------------2015-08-22 15:26:44------------------------------
last5MinsDistances = [ 58.85111404 52.33705935 24.81449148 10.1418431 9.72430701
14.82525553 5.85968318 2.9091658 5.66691148 5.55999901] with length 10
last10PointsDistances = [ 24.81449148 10.1418431 9.72430701 14.82525553 5.85968318
2.9091658 5.66691148 5.55999901 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 58.851114043, last10PointsDistance.max() = 24.8144914835
Found trip end at 2015-08-22 15:21:44
------------------------------2015-08-22 15:27:16------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:27:47------------------------------
last5MinsDistances = [ 2.45933086] with length 1
last10PointsDistances = [ 2.45933086 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 15:28:19------------------------------
last5MinsDistances = [ 2.53855622 4.63126442] with length 2
last10PointsDistances = [ 2.53855622 4.63126442 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 15:28:51------------------------------
last5MinsDistances = [ 0.65509191 2.11129562 3.18975344] with length 3
last10PointsDistances = [ 0.65509191 2.11129562 3.18975344 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 15:29:23------------------------------
last5MinsDistances = [ 2.0174526 4.27066781 0.63251346 2.65308803] with length 4
last10PointsDistances = [ 2.0174526 4.27066781 0.63251346 2.65308803 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 15:29:52------------------------------
last5MinsDistances = [ 1.86302031 4.27730443 1.23343785 2.43157098 0.63773936] with length 5
last10PointsDistances = [ 1.86302031 4.27730443 1.23343785 2.43157098 0.63773936 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 15:30:24------------------------------
last5MinsDistances = [ 3.07393938 5.08766351 0.54841684 3.72731259 1.16884378 1.72909114] with length 6
last10PointsDistances = [ 3.07393938 5.08766351 0.54841684 3.72731259 1.16884378 1.72909114
0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 15:30:56------------------------------
last5MinsDistances = [ 1.03120182 3.20907213 1.51991621 1.68629312 1.06479679 1.16722546
2.04745632] with length 7
last10PointsDistances = [ 1.03120182 3.20907213 1.51991621 1.68629312 1.06479679 1.16722546
2.04745632 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 15:31:28------------------------------
last5MinsDistances = [ 5.67730097 7.86775287 3.23654464 6.30048509 3.66372484 3.91398883
2.80544731 4.71318702] with length 8
last10PointsDistances = [ 5.67730097 7.86775287 3.23654464 6.30048509 3.66372484 3.91398883
2.80544731 4.71318702 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.8677528729, last10PointsDistance.max() = 7.8677528729
Found trip end at 2015-08-22 15:27:16
------------------------------2015-08-22 15:31:44------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:40:26------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 123.50268079 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:49:01------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 6.01689023 126.87520994 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 15:49:36------------------------------
last5MinsDistances = [ 2.36490861] with length 1
last10PointsDistances = [ 6.32856284 124.86948742 2.36490861 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 15:50:08------------------------------
last5MinsDistances = [ 15.64421813 14.98768539] with length 2
last10PointsDistances = [ 10.03648882 114.94510191 15.64421813 14.98768539 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 15:50:24------------------------------
last5MinsDistances = [ 18.9451455 18.42709626 3.5292949 ] with length 3
last10PointsDistances = [ 13.14066624 113.53662733 18.9451455 18.42709626 3.5292949 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 15:50:56------------------------------
last5MinsDistances = [ 129.23768205 127.29950616 116.77060795 115.17391033] with length 4
last10PointsDistances = [ 125.60806243 7.00219977 129.23768205 127.29950616 116.77060795
115.17391033 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 15:51:28------------------------------
last5MinsDistances = [ 236.50314327 234.89173643 222.16799552 219.79003343 113.49879647] with length 5
last10PointsDistances = [ 231.90192849 118.73719402 236.50314327 234.89173643 222.16799552
219.79003343 113.49879647 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 15:52:00------------------------------
last5MinsDistances = [ 325.76244671 324.38663972 310.70899308 307.97760668 208.56644773
96.21261561] with length 6
last10PointsDistances = [ 320.68862726 214.18433041 325.76244671 324.38663972 310.70899308
307.97760668 208.56644773 96.21261561 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 325.762446708, last10PointsDistance.max() = 325.762446708
------------------------------2015-08-22 15:52:32------------------------------
last5MinsDistances = [ 427.3323038 426.07585192 412.03694276 409.15989469 312.61439165
200.21406556 104.11862688] with length 7
last10PointsDistances = [ 318.28046032 427.3323038 426.07585192 412.03694276 409.15989469
312.61439165 200.21406556 104.11862688 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 427.332303796, last10PointsDistance.max() = 427.332303796
------------------------------2015-08-22 15:53:03------------------------------
last5MinsDistances = [ 440.5784695 439.25382132 425.40661541 422.60354254 323.42539371
210.22668726 115.2734784 19.92186754] with length 8
last10PointsDistances = [ 440.5784695 439.25382132 425.40661541 422.60354254 323.42539371
210.22668726 115.2734784 19.92186754 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 440.578469499, last10PointsDistance.max() = 440.578469499
------------------------------2015-08-22 15:53:35------------------------------
last5MinsDistances = [ 441.53760328 440.21392621 426.36377395 423.55953328 324.40627253
211.20960317 116.24672118 20.42727825 0.98413055] with length 9
last10PointsDistances = [ 440.21392621 426.36377395 423.55953328 324.40627253 211.20960317
116.24672118 20.42727825 0.98413055 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 441.537603282, last10PointsDistance.max() = 440.213926214
------------------------------2015-08-22 15:54:07------------------------------
last5MinsDistances = [ 448.47181632 434.81422837 432.08176335 330.71042158 217.22516357
124.10539949 36.52891597 16.74264448 16.43540549] with length 9
last10PointsDistances = [ 434.81422837 432.08176335 330.71042158 217.22516357 124.10539949
36.52891597 16.74264448 16.43540549 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 448.471816319, last10PointsDistance.max() = 434.814228368
------------------------------2015-08-22 15:54:37------------------------------
last5MinsDistances = [ 522.73001417 521.03819464 405.98918515 311.64456226 262.33275519
235.86978126 218.28732525 218.28193539 202.56702589] with length 9
last10PointsDistances = [ 521.03819464 405.98918515 311.64456226 262.33275519 235.86978126
218.28732525 218.28193539 202.56702589 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 522.730014167, last10PointsDistance.max() = 521.038194637
------------------------------2015-08-22 15:55:15------------------------------
last5MinsDistances = [ 546.9783551 431.81321873 342.0377394 297.84486088 273.88622431
256.25319536 256.23893678 240.47022043 38.02130733] with length 9
last10PointsDistances = [ 431.81321873 342.0377394 297.84486088 273.88622431 256.25319536
256.23893678 240.47022043 38.02130733 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 546.9783551, last10PointsDistance.max() = 431.813218728
------------------------------2015-08-22 15:55:45------------------------------
last5MinsDistances = [ 424.32003007 333.43415096 288.11103391 263.76304632 246.16374103
246.15395859 230.40944785 27.89347849 10.15171939] with length 9
last10PointsDistances = [ 333.43415096 288.11103391 263.76304632 246.16374103 246.15395859
230.40944785 27.89347849 10.15171939 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 424.32003007, last10PointsDistance.max() = 333.434150964
------------------------------2015-08-22 15:56:16------------------------------
last5MinsDistances = [ 340.59908324 299.15232787 278.6290543 261.3149123 261.33418114
245.73681203 43.45407736 10.17405723 16.91320059] with length 9
last10PointsDistances = [ 299.15232787 278.6290543 261.3149123 261.33418114 245.73681203
43.45407736 10.17405723 16.91320059 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 340.599083243, last10PointsDistance.max() = 299.152327868
------------------------------2015-08-22 15:56:42------------------------------
last5MinsDistances = [ 316.58229511 296.07524168 278.64560515 278.65162565 262.98012594
60.43179466 23.06934659 32.7608789 17.70092958] with length 9
last10PointsDistances = [ 296.07524168 278.64560515 278.65162565 262.98012594 60.43179466
23.06934659 32.7608789 17.70092958 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 316.582295108, last10PointsDistance.max() = 296.07524168
------------------------------2015-08-22 15:57:13------------------------------
last5MinsDistances = [ 331.90001275 313.81321747 313.74340238 297.7247917 97.0207952
59.72165809 69.71578714 58.51270776 41.87873778] with length 9
last10PointsDistances = [ 313.81321747 313.74340238 297.7247917 97.0207952 59.72165809
69.71578714 58.51270776 41.87873778 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 331.900012748, last10PointsDistance.max() = 313.813217471
------------------------------2015-08-22 15:57:45------------------------------
last5MinsDistances = [ 327.67424686 327.42174057 310.99473387 128.55621793 100.48151611
107.79134898 104.92007217 93.76476477 61.88642545] with length 9
last10PointsDistances = [ 327.42174057 310.99473387 128.55621793 100.48151611 107.79134898
104.92007217 93.76476477 61.88642545 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 327.674246858, last10PointsDistance.max() = 327.421740566
------------------------------2015-08-22 15:58:17------------------------------
last5MinsDistances = [ 326.41546994 310.01755698 142.90034948 120.98826536 126.58733236
127.21837498 118.86764464 91.95955507 31.7130132 ] with length 9
last10PointsDistances = [ 310.01755698 142.90034948 120.98826536 126.58733236 127.21837498
118.86764464 91.95955507 31.7130132 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 326.415469944, last10PointsDistance.max() = 310.017556981
------------------------------2015-08-22 15:58:33------------------------------
last5MinsDistances = [ 340.05083402 323.95503405 178.67390816 162.30210034 166.5231624
169.5786314 163.05176377 138.20893708 77.56239384 46.28439027] with length 10
last10PointsDistances = [ 178.67390816 162.30210034 166.5231624 169.5786314 163.05176377
138.20893708 77.56239384 46.28439027 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 340.050834021, last10PointsDistance.max() = 178.673908155
------------------------------2015-08-22 15:59:05------------------------------
last5MinsDistances = [ 344.97265182 214.2655452 200.15020868 203.8760296 207.7282481
201.69830345 176.83989573 115.68371712 84.88879733 38.83387939] with length 10
last10PointsDistances = [ 200.15020868 203.8760296 207.7282481 201.69830345 176.83989573
115.68371712 84.88879733 38.83387939 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 344.972651822, last10PointsDistance.max() = 207.728248099
------------------------------2015-08-22 15:59:37------------------------------
last5MinsDistances = [ 226.40086375 213.11415969 216.64828518 220.81079981 215.01651167
190.38255376 129.20769591 98.42972115 52.32671968 13.54327039] with length 10
last10PointsDistances = [ 216.64828518 220.81079981 215.01651167 190.38255376 129.20769591
98.42972115 52.32671968 13.54327039 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 226.400863748, last10PointsDistance.max() = 220.810799809
------------------------------2015-08-22 16:00:08------------------------------
last5MinsDistances = [ 242.1541985 247.05399795 248.75710307 240.40791919 210.00980838
148.39418575 121.6627777 81.60410284 51.2032458 45.10654917] with length 10
last10PointsDistances = [ 248.75710307 240.40791919 210.00980838 148.39418575 121.6627777
81.60410284 51.2032458 45.10654917 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 248.757103069, last10PointsDistance.max() = 248.757103069
------------------------------2015-08-22 16:00:40------------------------------
last5MinsDistances = [ 243.72949661 245.67214114 237.56239933 207.68286815 145.94859123
118.72658086 77.89227223 46.65398843 40.35538644 4.75323761] with length 10
last10PointsDistances = [ 237.56239933 207.68286815 145.94859123 118.72658086 77.89227223
46.65398843 40.35538644 4.75323761 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 245.672141142, last10PointsDistance.max() = 237.562399329
------------------------------2015-08-22 16:01:12------------------------------
last5MinsDistances = [ 242.64776337 234.15103983 203.53559096 141.96775778 115.48698349
76.18200865 47.71805409 43.22560031 6.59588961 6.75681922] with length 10
last10PointsDistances = [ 203.53559096 141.96775778 115.48698349 76.18200865 47.71805409
43.22560031 6.59588961 6.75681922 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 242.647763365, last10PointsDistance.max() = 203.53559096
------------------------------2015-08-22 16:01:42------------------------------
last5MinsDistances = [ 204.43163079 142.89739163 116.52674475 77.37706558 48.98900839
44.41923045 5.99100916 7.05609656 1.27517439] with length 9
last10PointsDistances = [ 142.89739163 116.52674475 77.37706558 48.98900839 44.41923045
5.99100916 7.05609656 1.27517439 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 204.431630787, last10PointsDistance.max() = 142.897391633
------------------------------2015-08-22 16:02:13------------------------------
last5MinsDistances = [ 203.25729953 141.61622425 114.85521053 75.05021666 45.92096745
41.17509538 6.8109956 5.45651492 2.13565113 3.24844603] with length 10
last10PointsDistances = [ 114.85521053 75.05021666 45.92096745 41.17509538 6.8109956
5.45651492 2.13565113 3.24844603 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 203.257299532, last10PointsDistance.max() = 114.855210534
------------------------------2015-08-22 16:02:45------------------------------
last5MinsDistances = [ 141.50147921 114.71063671 74.85620984 45.67241299 40.91636193
6.95214274 5.40982207 2.3839113 3.50668576 0.25875177] with length 10
last10PointsDistances = [ 74.85620984 45.67241299 40.91636193 6.95214274 5.40982207
2.3839113 3.50668576 0.25875177 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 141.501479213, last10PointsDistance.max() = 74.8562098369
------------------------------2015-08-22 16:03:17------------------------------
last5MinsDistances = [ 117.8620519 78.52350725 49.66455642 44.72582278 4.56064113
6.22894609 2.38158421 1.45145712 3.74740069 3.99324339] with length 10
last10PointsDistances = [ 49.66455642 44.72582278 4.56064113 6.22894609 2.38158421
1.45145712 3.74740069 3.99324339 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 117.862051901, last10PointsDistance.max() = 49.66455642
------------------------------2015-08-22 16:03:33------------------------------
last5MinsDistances = [ 75.26709756 46.05602734 41.24037466 6.56273747 5.22548125
2.16175058 3.20768369 0.26023445 0.41182875 3.60906349] with length 10
last10PointsDistances = [ 41.24037466 6.56273747 5.22548125 2.16175058 3.20768369
0.26023445 0.41182875 3.60906349 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 75.2670975591, last10PointsDistance.max() = 41.2403746591
Found trip end at 2015-08-22 15:58:33
------------------------------2015-08-22 16:04:05------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:04:36------------------------------
last5MinsDistances = [ 6.01181724] with length 1
last10PointsDistances = [ 6.01181724 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 16:05:24------------------------------
last5MinsDistances = [ 1.54270479 5.01710455] with length 2
last10PointsDistances = [ 1.54270479 5.01710455 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 16:05:40------------------------------
last5MinsDistances = [ 4.58413438 2.94352196 4.37101312] with length 3
last10PointsDistances = [ 4.58413438 2.94352196 4.37101312 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 16:06:12------------------------------
last5MinsDistances = [ 0.42484337 5.59803307 1.35604981 4.17683152] with length 4
last10PointsDistances = [ 0.42484337 5.59803307 1.35604981 4.17683152 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 16:06:42------------------------------
last5MinsDistances = [ 3.81782189 5.59938403 4.56000531 2.74095936 3.57457643] with length 5
last10PointsDistances = [ 3.81782189 5.59938403 4.56000531 2.74095936 3.57457643 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 16:07:13------------------------------
last5MinsDistances = [ 0.62405078 5.88977313 1.93002318 4.18705597 0.57487501 3.20681424] with length 6
last10PointsDistances = [ 0.62405078 5.88977313 1.93002318 4.18705597 0.57487501 3.20681424
0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 16:07:45------------------------------
last5MinsDistances = [ 3.81782189 5.59938403 4.56000531 2.74095936 3.57457643 0.
3.20681424] with length 7
last10PointsDistances = [ 3.81782189 5.59938403 4.56000531 2.74095936 3.57457643 0.
3.20681424 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 16:08:17------------------------------
last5MinsDistances = [ 7.67448181 2.42562678 7.00349001 3.38795554 7.25000239 5.99095493
7.39062719 5.99095493] with length 8
last10PointsDistances = [ 7.67448181 2.42562678 7.00349001 3.38795554 7.25000239 5.99095493
7.39062719 5.99095493 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.67448181157, last10PointsDistance.max() = 7.67448181157
Found trip end at 2015-08-22 16:04:05
------------------------------2015-08-22 16:08:49------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:39:36------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 137.9316053 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:39:49------------------------------
last5MinsDistances = [ 102.04951433] with length 1
last10PointsDistances = [ 131.59175488 102.04951433 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 16:39:55------------------------------
last5MinsDistances = [ 40.73388943 68.16598029] with length 2
last10PointsDistances = [ 108.64439566 40.73388943 68.16598029 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:01------------------------------
last5MinsDistances = [ 35.12132754 70.73202029 6.4037941 ] with length 3
last10PointsDistances = [ 114.50102903 35.12132754 70.73202029 6.4037941 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:06------------------------------
last5MinsDistances = [ 29.24624545 74.52266494 12.95560863 6.5762215 ] with length 4
last10PointsDistances = [ 120.22857984 29.24624545 74.52266494 12.95560863 6.5762215 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:12------------------------------
last5MinsDistances = [ 22.13600571 79.99266737 21.95831667 15.57571109 9.00334457] with length 5
last10PointsDistances = [ 128.37684151 22.13600571 79.99266737 21.95831667 15.57571109
9.00334457 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:17------------------------------
last5MinsDistances = [ 20.68108045 82.52478457 29.56015125 23.16420238 16.73343067
8.12208018] with length 6
last10PointsDistances = [ 136.49882137 20.68108045 82.52478457 29.56015125 23.16420238
16.73343067 8.12208018 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:22------------------------------
last5MinsDistances = [ 16.895476 88.62060762 35.76661691 29.36810598 22.81753249
13.83683568 6.73716444] with length 7
last10PointsDistances = [ 141.52562448 16.895476 88.62060762 35.76661691 29.36810598
22.81753249 13.83683568 6.73716444 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 88.6206076218, last10PointsDistance.max() = 141.525624483
------------------------------2015-08-22 16:40:27------------------------------
last5MinsDistances = [ 16.57367384 92.00012667 39.97216261 33.57784921 27.01799943
18.02229781 10.89837864 4.23446397] with length 8
last10PointsDistances = [ 16.57367384 92.00012667 39.97216261 33.57784921 27.01799943
18.02229781 10.89837864 4.23446397 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 92.0001266714, last10PointsDistance.max() = 92.0001266714
Found trip end at 2015-08-22 16:39:36
------------------------------2015-08-22 16:40:32------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:37------------------------------
last5MinsDistances = [ 7.90049176] with length 1
last10PointsDistances = [ 7.90049176 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:43------------------------------
last5MinsDistances = [ 13.77395209 6.18739046] with length 2
last10PointsDistances = [ 13.77395209 6.18739046 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:48------------------------------
last5MinsDistances = [ 18.91590635 11.25055292 5.1419648 ] with length 3
last10PointsDistances = [ 18.91590635 11.25055292 5.1419648 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:53------------------------------
last5MinsDistances = [ 23.4759309 15.68566629 9.74419516 4.68511257] with length 4
last10PointsDistances = [ 23.4759309 15.68566629 9.74419516 4.68511257 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 16:40:58------------------------------
last5MinsDistances = [ 29.39454316 21.56885119 15.68207865 10.60635349 5.93867981] with length 5
last10PointsDistances = [ 29.39454316 21.56885119 15.68207865 10.60635349 5.93867981 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:03------------------------------
last5MinsDistances = [ 35.49927153 27.61977495 21.89332198 16.88720841 12.20211904
6.34489471] with length 6
last10PointsDistances = [ 35.49927153 27.61977495 21.89332198 16.88720841 12.20211904
6.34489471 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:08------------------------------
last5MinsDistances = [ 42.02360254 34.18410555 28.30676487 23.20514076 18.56340466
12.6306811 6.78022883] with length 7
last10PointsDistances = [ 42.02360254 34.18410555 28.30676487 23.20514076 18.56340466
12.6306811 6.78022883 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:13------------------------------
last5MinsDistances = [ 47.83027938 40.04453965 34.06550347 28.92984182 24.36319152
18.49116461 12.89648741 6.13134647] with length 8
last10PointsDistances = [ 47.83027938 40.04453965 34.06550347 28.92984182 24.36319152
18.49116461 12.89648741 6.13134647 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 47.8302793802, last10PointsDistance.max() = 47.8302793802
Found trip end at 2015-08-22 16:40:32
------------------------------2015-08-22 16:41:18------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:24------------------------------
last5MinsDistances = [ 5.45827332] with length 1
last10PointsDistances = [ 5.45827332 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:29------------------------------
last5MinsDistances = [ 13.35708221 7.98618431] with length 2
last10PointsDistances = [ 13.35708221 7.98618431 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:35------------------------------
last5MinsDistances = [ 21.75678875 16.31188549 8.50287856] with length 3
last10PointsDistances = [ 21.75678875 16.31188549 8.50287856 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:40------------------------------
last5MinsDistances = [ 27.03052099 21.57755925 13.80127371 5.29869793] with length 4
last10PointsDistances = [ 27.03052099 21.57755925 13.80127371 5.29869793 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:45------------------------------
last5MinsDistances = [ 31.079067 25.66105856 17.73097027 9.41170755 4.54091442] with length 5
last10PointsDistances = [ 31.079067 25.66105856 17.73097027 9.41170755 4.54091442 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:50------------------------------
last5MinsDistances = [ 36.03496481 30.59109088 22.73152681 14.27927565 9.04529467
5.16480298] with length 6
last10PointsDistances = [ 36.03496481 30.59109088 22.73152681 14.27927565 9.04529467
5.16480298 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 16:41:55------------------------------
last5MinsDistances = [ 41.3574082 35.93940578 28.0064015 19.66416511 14.53801597
10.27886099 5.61494289] with length 7
last10PointsDistances = [ 41.3574082 35.93940578 28.0064015 19.66416511 14.53801597
10.27886099 5.61494289 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:01------------------------------
last5MinsDistances = [ 42.6133043 37.21742466 29.2563266 21.00090756 15.96196665
11.5892034 7.19570026 1.72292493] with length 8
last10PointsDistances = [ 42.6133043 37.21742466 29.2563266 21.00090756 15.96196665
11.5892034 7.19570026 1.72292493 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 42.613304305, last10PointsDistance.max() = 42.613304305
Found trip end at 2015-08-22 16:41:18
------------------------------2015-08-22 16:42:07------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:13------------------------------
last5MinsDistances = [ 0.65634408] with length 1
last10PointsDistances = [ 0.65634408 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:19------------------------------
last5MinsDistances = [ 3.74217325 3.15515322] with length 2
last10PointsDistances = [ 3.74217325 3.15515322 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:25------------------------------
last5MinsDistances = [ 4.48796122 4.2669662 3.03684853] with length 3
last10PointsDistances = [ 4.48796122 4.2669662 3.03684853 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:31------------------------------
last5MinsDistances = [ 3.4288768 3.02589167 1.48777685 1.65577458] with length 4
last10PointsDistances = [ 3.4288768 3.02589167 1.48777685 1.65577458 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:42------------------------------
last5MinsDistances = [ 3.04373829 2.40777188 0.97338902 3.63379536 1.97838129] with length 5
last10PointsDistances = [ 3.04373829 2.40777188 0.97338902 3.63379536 1.97838129 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:48------------------------------
last5MinsDistances = [ 21.6233755 22.10607291 25.19087657 25.81205214 25.04348314
24.29404357] with length 6
last10PointsDistances = [ 21.6233755 22.10607291 25.19087657 25.81205214 25.04348314
24.29404357 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-22 16:42:53------------------------------
last5MinsDistances = [ 21.88088675 22.35201774 25.42000258 26.10590872 25.30588174
24.51465058 0.61769415] with length 7
last10PointsDistances = [ 21.88088675 22.35201774 25.42000258 26.10590872 25.30588174
24.51465058 0.61769415 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
In [29]:
ipy.inline_map(lo.get_map(pd.DataFrame(my_segment_points_aug_22)))
Out[29]:
In [30]:
def make_trip(startDict, endDict):
start = ad.AttrDict(startDict)
end = ad.AttrDict(endDict)
print "-" * 20 + str(start.formatted_time) + " -> " + str(end.formatted_time) + "-" * 20
trip = ad.AttrDict({'user_id': myUUID, 'loc_filter': 'time',
'start_ts': start.mTime, 'end_ts': end.mTime,
'start_time': start.formatted_time, 'end_time': end.formatted_time})
return trip
In [31]:
my_trips_list_aug_22 = [make_trip(s1, s2) for s1, s2 in zip(my_segment_points_aug_22, my_segment_points_aug_22[1:])]
--------------------2015-08-22 11:04:55 -> 2015-08-22 11:07:55--------------------
--------------------2015-08-22 11:07:55 -> 2015-08-22 11:12:55--------------------
--------------------2015-08-22 11:12:55 -> 2015-08-22 11:23:51--------------------
--------------------2015-08-22 11:23:51 -> 2015-08-22 11:28:55--------------------
--------------------2015-08-22 11:28:55 -> 2015-08-22 14:58:41--------------------
--------------------2015-08-22 14:58:41 -> 2015-08-22 15:03:43--------------------
--------------------2015-08-22 15:03:43 -> 2015-08-22 15:21:44--------------------
--------------------2015-08-22 15:21:44 -> 2015-08-22 15:27:16--------------------
--------------------2015-08-22 15:27:16 -> 2015-08-22 15:58:33--------------------
--------------------2015-08-22 15:58:33 -> 2015-08-22 16:04:05--------------------
--------------------2015-08-22 16:04:05 -> 2015-08-22 16:39:36--------------------
--------------------2015-08-22 16:39:36 -> 2015-08-22 16:40:32--------------------
--------------------2015-08-22 16:40:32 -> 2015-08-22 16:41:18--------------------
In [32]:
trip_section_map = []
for trip in my_trips_list_aug_22:
trip_section_map.append((trip, ss.segment_into_sections(trip)))
At 2015-08-22 11:05:23, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:05:57, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:06:28, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:06:57, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:07:28, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 11:07:55
At 2015-08-22 11:07:58, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:08:53, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:09:48, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:10:53, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:11:53, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:12:53, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 11:12:55
At 2015-08-22 11:13:58, retained existing activity Activities.STILL
At 2015-08-22 11:14:28, retained existing activity Activities.STILL
At 2015-08-22 11:15:24, retained existing activity Activities.STILL
At 2015-08-22 11:15:58, retained existing activity Activities.STILL
At 2015-08-22 11:16:43, retained existing activity Activities.STILL
At 2015-08-22 11:17:13, retained existing activity Activities.STILL
At 2015-08-22 11:21:53, found new activity Activities.ON_BICYCLE compared to current Activities.STILL - creating new section with start_time 2015-08-22 11:17:13
At 2015-08-22 11:22:23, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:22:53, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:23:24, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 11:23:51
At 2015-08-22 11:24:02, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:24:24, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:25:31, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:26:23, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:26:57, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:27:27, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:27:57, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 11:28:28, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 11:28:55
At 2015-08-22 11:28:58, retained existing activity Activities.STILL
At 2015-08-22 11:29:29, retained existing activity Activities.STILL
At 2015-08-22 11:29:58, retained existing activity Activities.STILL
At 2015-08-22 11:30:28, retained existing activity Activities.STILL
At 2015-08-22 11:30:58, retained existing activity Activities.STILL
At 2015-08-22 11:31:28, retained existing activity Activities.STILL
At 2015-08-22 11:31:58, retained existing activity Activities.STILL
At 2015-08-22 11:32:28, retained existing activity Activities.STILL
At 2015-08-22 11:32:58, retained existing activity Activities.STILL
At 2015-08-22 11:33:28, retained existing activity Activities.STILL
At 2015-08-22 11:33:58, retained existing activity Activities.STILL
At 2015-08-22 11:34:28, retained existing activity Activities.STILL
At 2015-08-22 14:57:34, found new activity Activities.ON_BICYCLE compared to current Activities.STILL - creating new section with start_time 2015-08-22 11:34:28
At 2015-08-22 14:58:15, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 14:58:41
At 2015-08-22 14:58:46, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 14:59:31, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:00:02, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:01:16, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:02:03, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:02:46, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:03:16, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-22 15:03:43
At 2015-08-22 15:03:46, retained existing activity Activities.STILL
At 2015-08-22 15:04:16, retained existing activity Activities.STILL
At 2015-08-22 15:04:46, retained existing activity Activities.STILL
At 2015-08-22 15:05:16, retained existing activity Activities.STILL
At 2015-08-22 15:05:46, retained existing activity Activities.STILL
At 2015-08-22 15:06:24, retained existing activity Activities.STILL
At 2015-08-22 15:07:01, found new activity Activities.ON_FOOT compared to current Activities.STILL - creating new section with start_time 2015-08-22 15:06:24
At 2015-08-22 15:07:41, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:16:46, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-22 15:07:41
At 2015-08-22 15:17:28, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:17:58, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:18:28, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:18:58, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:19:31, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:20:01, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:20:55, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:21:31, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-22 15:20:55
Detected trip end! Ending section at 2015-08-22 15:21:44
At 2015-08-22 15:22:06, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:22:48, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:23:57, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:24:57, found new activity Activities.IN_VEHICLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-22 15:23:57
At 2015-08-22 15:25:31, retained existing activity Activities.IN_VEHICLE
At 2015-08-22 15:26:02, retained existing activity Activities.IN_VEHICLE
At 2015-08-22 15:26:57, retained existing activity Activities.IN_VEHICLE
Detected trip end! Ending section at 2015-08-22 15:27:16
At 2015-08-22 15:27:57, retained existing activity Activities.STILL
At 2015-08-22 15:28:57, retained existing activity Activities.STILL
At 2015-08-22 15:29:32, retained existing activity Activities.STILL
At 2015-08-22 15:30:02, retained existing activity Activities.STILL
At 2015-08-22 15:30:57, retained existing activity Activities.STILL
At 2015-08-22 15:31:57, retained existing activity Activities.STILL
At 2015-08-22 15:49:31, retained existing activity Activities.STILL
At 2015-08-22 15:50:34, retained existing activity Activities.STILL
At 2015-08-22 15:51:14, found new activity Activities.ON_BICYCLE compared to current Activities.STILL - creating new section with start_time 2015-08-22 15:50:34
At 2015-08-22 15:51:23, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:51:44, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:52:14, retained existing activity Activities.ON_BICYCLE
At 2015-08-22 15:52:51, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-22 15:52:14
At 2015-08-22 15:53:14, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:54:01, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-22 15:53:14
At 2015-08-22 15:54:51, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-22 15:54:01
At 2015-08-22 15:55:53, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:57:21, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:57:51, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:58:21, retained existing activity Activities.ON_FOOT
Detected trip end! Ending section at 2015-08-22 15:58:33
At 2015-08-22 15:58:51, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:59:21, retained existing activity Activities.ON_FOOT
At 2015-08-22 15:59:51, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:00:21, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:00:52, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:01:47, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:02:51, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:03:52, retained existing activity Activities.ON_FOOT
Detected trip end! Ending section at 2015-08-22 16:04:05
At 2015-08-22 16:04:47, retained existing activity Activities.STILL
At 2015-08-22 16:05:22, retained existing activity Activities.STILL
At 2015-08-22 16:06:17, retained existing activity Activities.STILL
At 2015-08-22 16:07:17, retained existing activity Activities.STILL
At 2015-08-22 16:08:17, retained existing activity Activities.STILL
Detected trip end! Ending section at 2015-08-22 16:39:36
At 2015-08-22 16:39:40, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:40:08, retained existing activity Activities.ON_FOOT
Detected trip end! Ending section at 2015-08-22 16:40:32
At 2015-08-22 16:40:38, retained existing activity Activities.ON_FOOT
At 2015-08-22 16:41:08, retained existing activity Activities.ON_FOOT
Detected trip end! Ending section at 2015-08-22 16:41:18
In [33]:
section_map_list_22 = lo.get_map_list_after_segmentation(trip_section_map,
cso.BoxplotOutlier(ignore_zeros=True),
cjs.SmoothZigzag())
DEBUG:root:==================== 2015-08-22 11:04:55 -> 2015-08-22 11:07:55 ====================
DEBUG:root:-------------------- 0: 2015-08-22 11:04:55 -> 2015-08-22 11:07:55 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (5, 28) to (5, 28)
DEBUG:root:quartile values are 0.25 2.618878
0.75 3.725620
Name: speed, dtype: float64
DEBUG:root:iqr 1.10674213718
DEBUG:root:For cluster 0 - 4, distance = 284.520894957, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 4, 284.520894957)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 11:04:55'), 'end_ts': 1440266875369, 'start_ts': 1440266695200, 'end_time': Timestamp('2015-08-22 11:07:55'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (5, 28), formatted_time.head() = 0 2015-08-22 11:05:25
1 2015-08-22 11:05:55
2 2015-08-22 11:06:25
3 2015-08-22 11:06:55
4 2015-08-22 11:07:25
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 11:07:55 -> 2015-08-22 11:12:55 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440266695200}}, {'data.mTime': {'$lt': 1440266875369}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440266875369}}, {'data.mTime': {'$lt': 1440267175551}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 11:07:55 -> 2015-08-22 11:12:55 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (9, 28) to (9, 28)
DEBUG:root:quartile values are 0.25 0.392388
0.75 1.045228
Name: speed, dtype: float64
DEBUG:root:iqr 0.652840291523
DEBUG:root:For cluster 0 - 8, distance = 58.4192899223, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 8, 58.4192899223)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 11:07:55'), 'end_ts': 1440267175551, 'start_ts': 1440266875369, 'end_time': Timestamp('2015-08-22 11:12:55'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (9, 28), formatted_time.head() = 0 2015-08-22 11:08:25
1 2015-08-22 11:08:55
2 2015-08-22 11:09:25
3 2015-08-22 11:09:55
4 2015-08-22 11:10:25
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 11:12:55 -> 2015-08-22 11:23:51 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440267175551}}, {'data.mTime': {'$lt': 1440267831337}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 11:12:55 -> 2015-08-22 11:17:13 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (8, 29) to (8, 29)
DEBUG:root:quartile values are 0.25 0.506379
0.75 1.253425
Name: speed, dtype: float64
DEBUG:root:iqr 0.747046539281
DEBUG:root:For cluster 0 - 7, distance = 17.6602712945, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 7, 17.6602712945)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 11:12:55'), 'end_ts': 1440267433784, 'start_ts': 1440267175551, 'end_time': '2015-08-22 11:17:13', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (8, 29), formatted_time.head() = 0 2015-08-22 11:13:25
1 2015-08-22 11:13:55
2 2015-08-22 11:14:25
3 2015-08-22 11:14:55
4 2015-08-22 11:15:25
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-22 11:17:13 -> 2015-08-22 11:23:51 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (8, 29) to (8, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 3.618567
0.75 3.631316
Name: speed, dtype: float64
DEBUG:root:iqr 0.0127490633794
DEBUG:root:For cluster 0 - 3, distance = 188.635458211, is_cluster = False
DEBUG:root:For cluster 3 - 7, distance = 224.554995011, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 3, 188.635458211), Segment(3, 7, 224.554995011)] with size 2
DEBUG:root:shortest_non_cluster_segment = 0
DEBUG:root:Processing segment 1: Segment(3, 7, 224.554995011), expecting state Segment_State.BAD
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:For cluster 5 - 7, distance = 108.65832403, is_cluster = False
DEBUG:root:For cluster 3 - 5, distance = 0.0, is_cluster = True
DEBUG:root:Finishing process for Segment(3, 5, 0.0) after splitting mixed cluster
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Processing segment 2: Segment(5, 7, 108.65832403), expecting state Segment_State.GOOD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 3
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(3, 5, 0.0)]
DEBUG:root:after setting values, outlier_mask = [3 4]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
3 37.392803 -122.091715 39 2015-08-22 11:21:47
4 37.392803 -122.091715 39 2015-08-22 11:21:47
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 2.918234
0.75 3.933428
Name: speed, dtype: float64
DEBUG:root:iqr 1.0151933315
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 11, 17, 13), 'end_ts': 1440267831337, 'start_ts': 1440267433784, 'end_time': Timestamp('2015-08-22 11:23:51'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (6, 29), formatted_time.head() = 0 2015-08-22 11:17:25
1 2015-08-22 11:21:16
2 2015-08-22 11:21:16
5 2015-08-22 11:22:21
6 2015-08-22 11:22:51
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 11:23:51 -> 2015-08-22 11:28:55 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440267831337}}, {'data.mTime': {'$lt': 1440268135736}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 11:23:51 -> 2015-08-22 11:28:55 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (9, 28) to (9, 28)
DEBUG:root:quartile values are 0.25 0.040728
0.75 0.135226
Name: speed, dtype: float64
DEBUG:root:iqr 0.0944982170122
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 1 - 8, distance = 12.9401825672, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0), Segment(1, 8, 12.9401825672)] with size 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 0: Segment(0, 1, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = -1
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(0, 1, 0.0)]
DEBUG:root:after setting values, outlier_mask = [0]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
0 37.390425 -122.086687 31.5 2015-08-22 11:24:21
DEBUG:root:quartile values are 0.25 0.031452
0.75 0.098670
Name: speed, dtype: float64
DEBUG:root:iqr 0.0672181303041
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 11:23:51'), 'end_ts': 1440268135736, 'start_ts': 1440267831337, 'end_time': Timestamp('2015-08-22 11:28:55'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (8, 28), formatted_time.head() = 1 2015-08-22 11:24:51
2 2015-08-22 11:25:25
3 2015-08-22 11:25:55
4 2015-08-22 11:26:25
5 2015-08-22 11:26:55
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 11:28:55 -> 2015-08-22 14:58:41 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440268135736}}, {'data.mTime': {'$lt': 1440280721096}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 11:28:55 -> 2015-08-22 11:34:28 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 29) to (11, 29)
DEBUG:root:quartile values are 0.25 0.029888
0.75 0.103401
Name: speed, dtype: float64
DEBUG:root:iqr 0.0735135486153
DEBUG:root:For cluster 0 - 10, distance = 2.88043637566, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 10, 2.88043637566)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 11:28:55'), 'end_ts': 1440268468940, 'start_ts': 1440268135736, 'end_time': '2015-08-22 11:34:28', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (11, 29), formatted_time.head() = 0 2015-08-22 11:29:25
1 2015-08-22 11:29:55
2 2015-08-22 11:30:25
3 2015-08-22 11:30:55
4 2015-08-22 11:31:25
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-22 11:34:28 -> 2015-08-22 14:58:41 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (4, 29) to (4, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 1.375306
0.75 3.289601
Name: speed, dtype: float64
DEBUG:root:iqr 1.91429558232
DEBUG:root:For cluster 0 - 3, distance = 135.233481003, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 3, 135.233481003)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 11, 34, 28), 'end_ts': 1440280721096, 'start_ts': 1440268468940, 'end_time': Timestamp('2015-08-22 14:58:41'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (4, 29), formatted_time.head() = 0 2015-08-22 14:57:05
1 2015-08-22 14:57:05
2 2015-08-22 14:57:37
3 2015-08-22 14:58:09
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 14:58:41 -> 2015-08-22 15:03:43 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440280721096}}, {'data.mTime': {'$lt': 1440281023526}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 14:58:41 -> 2015-08-22 15:03:43 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (10, 28) to (10, 28)
DEBUG:root:quartile values are 0.25 0.38379
0.75 1.31540
Name: speed, dtype: float64
DEBUG:root:iqr 0.931610376222
DEBUG:root:For cluster 0 - 9, distance = 47.4756525002, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 9, 47.4756525002)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 14:58:41'), 'end_ts': 1440281023526, 'start_ts': 1440280721096, 'end_time': Timestamp('2015-08-22 15:03:43'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (10, 28), formatted_time.head() = 0 2015-08-22 14:59:02
1 2015-08-22 14:59:07
2 2015-08-22 14:59:43
3 2015-08-22 15:00:13
4 2015-08-22 15:00:43
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 15:03:43 -> 2015-08-22 15:21:44 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440281023526}}, {'data.mTime': {'$lt': 1440282104552}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 15:03:43 -> 2015-08-22 15:06:24 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (5, 29) to (5, 29)
DEBUG:root:quartile values are 0.25 0.231585
0.75 0.308156
Name: speed, dtype: float64
DEBUG:root:iqr 0.0765705284081
DEBUG:root:For cluster 0 - 4, distance = 2.80453193939, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 4, 2.80453193939)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 15:03:43'), 'end_ts': 1440281184822, 'start_ts': 1440281023526, 'end_time': '2015-08-22 15:06:24', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (5, 29), formatted_time.head() = 0 2015-08-22 15:04:13
1 2015-08-22 15:04:43
2 2015-08-22 15:05:13
3 2015-08-22 15:05:43
4 2015-08-22 15:06:13
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-22 15:06:24 -> 2015-08-22 15:07:41 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (2, 29) to (2, 29)
DEBUG:root:quartile values are 0.25 0.989173
0.75 0.989173
Name: speed, dtype: float64
DEBUG:root:iqr 0.0
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 6, 24), 'end_ts': 1440281261807, 'start_ts': 1440281184822, 'end_time': '2015-08-22 15:07:41', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-22 15:06:43
1 2015-08-22 15:07:13
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-22 15:07:41 -> 2015-08-22 15:20:55 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 29) to (11, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 0.265184
0.75 4.203148
Name: speed, dtype: float64
DEBUG:root:iqr 3.93796480987
DEBUG:root:For cluster 0 - 10, distance = 629.925473984, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 10, 629.925473984)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 7, 41), 'end_ts': 1440282055499, 'start_ts': 1440281261807, 'end_time': '2015-08-22 15:20:55', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (11, 29), formatted_time.head() = 0 2015-08-22 15:07:43
1 2015-08-22 15:16:24
2 2015-08-22 15:16:24
3 2015-08-22 15:16:55
4 2015-08-22 15:17:25
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-22 15:20:55 -> 2015-08-22 15:21:44 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (2, 29) to (2, 29)
DEBUG:root:quartile values are 0.25 0.416456
0.75 0.416456
Name: speed, dtype: float64
DEBUG:root:iqr 0.0
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 20, 55), 'end_ts': 1440282104552, 'start_ts': 1440282055499, 'end_time': Timestamp('2015-08-22 15:21:44'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-22 15:20:56
1 2015-08-22 15:21:12
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 15:21:44 -> 2015-08-22 15:27:16 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440282104552}}, {'data.mTime': {'$lt': 1440282436068}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 15:21:44 -> 2015-08-22 15:23:57 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (4, 28) to (4, 28)
DEBUG:root:quartile values are 0.25 0.273790
0.75 1.257542
Name: speed, dtype: float64
DEBUG:root:iqr 0.983752533624
DEBUG:root:For cluster 0 - 3, distance = 57.5170427933, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 3, 57.5170427933)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 15:21:44'), 'end_ts': 1440282237237, 'start_ts': 1440282104552, 'end_time': '2015-08-22 15:23:57', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (4, 28), formatted_time.head() = 0 2015-08-22 15:22:16
1 2015-08-22 15:22:48
2 2015-08-22 15:23:19
3 2015-08-22 15:23:51
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-22 15:23:57 -> 2015-08-22 15:27:16 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 28) to (6, 28)
DEBUG:root:quartile values are 0.25 0.134309
0.75 0.248519
Name: speed, dtype: float64
DEBUG:root:iqr 0.114210332243
DEBUG:root:For cluster 0 - 5, distance = 20.1564906927, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 5, 20.1564906927)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 23, 57), 'end_ts': 1440282436068, 'start_ts': 1440282237237, 'end_time': Timestamp('2015-08-22 15:27:16'), 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (6, 28), formatted_time.head() = 0 2015-08-22 15:24:23
1 2015-08-22 15:24:52
2 2015-08-22 15:25:24
3 2015-08-22 15:25:56
4 2015-08-22 15:26:12
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 15:27:16 -> 2015-08-22 15:58:33 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440282436068}}, {'data.mTime': {'$lt': 1440284313416}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 15:27:16 -> 2015-08-22 15:50:34 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (16, 29) to (16, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 0.066259
0.75 0.236381
Name: speed, dtype: float64
DEBUG:root:iqr 0.170121742897
DEBUG:root:For cluster 0 - 15, distance = 7.00056214492, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 15, 7.00056214492)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 15:27:16'), 'end_ts': 1440283834694, 'start_ts': 1440282436068, 'end_time': '2015-08-22 15:50:34', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (16, 29), formatted_time.head() = 0 2015-08-22 15:27:47
1 2015-08-22 15:28:19
2 2015-08-22 15:28:51
3 2015-08-22 15:29:23
4 2015-08-22 15:29:52
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-22 15:50:34 -> 2015-08-22 15:52:14 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (3, 29) to (3, 29)
DEBUG:root:quartile values are 0.25 3.160083
0.75 3.430473
Name: speed, dtype: float64
DEBUG:root:iqr 0.270390241339
DEBUG:root:For cluster 0 - 2, distance = 113.498796467, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 2, 113.498796467)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 50, 34), 'end_ts': 1440283934276, 'start_ts': 1440283834694, 'end_time': '2015-08-22 15:52:14', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-22 15:50:56
1 2015-08-22 15:51:28
2 2015-08-22 15:52:00
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-22 15:52:14 -> 2015-08-22 15:53:14 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (2, 29) to (2, 29)
DEBUG:root:quartile values are 0.25 0.626356
0.75 0.626356
Name: speed, dtype: float64
DEBUG:root:iqr 0.0
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 52, 14), 'end_ts': 1440283994612, 'start_ts': 1440283934276, 'end_time': '2015-08-22 15:53:14', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-22 15:52:32
1 2015-08-22 15:53:03
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-22 15:53:14 -> 2015-08-22 15:54:01 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (1, 29) to (1, 29)
DEBUG:root:quartile values are 0.25 NaN
0.75 NaN
Name: speed, dtype: float64
DEBUG:root:iqr nan
Caught error Cannot assign nan to integer series while processing section, skipping...
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 53, 14), 'end_ts': 1440284041482, 'start_ts': 1440283994612, 'end_time': '2015-08-22 15:54:01', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (1, 29), formatted_time.head() = 0 2015-08-22 15:53:35
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-22 15:54:01 -> 2015-08-22 15:58:33 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (9, 29) to (9, 29)
DEBUG:root:quartile values are 0.25 0.651001
0.75 1.473402
Name: speed, dtype: float64
DEBUG:root:iqr 0.822401459964
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 1 - 8, distance = 128.556217934, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0), Segment(1, 8, 128.556217934)] with size 2
DEBUG:root:shortest_non_cluster_segment = 1
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 0: Segment(0, 1, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = -1
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(0, 1, 0.0)]
DEBUG:root:after setting values, outlier_mask = [0]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
0 37.392846 -122.08505 58.5 2015-08-22 15:54:07
DEBUG:root:quartile values are 0.25 0.621170
0.75 1.156307
Name: speed, dtype: float64
DEBUG:root:iqr 0.535137049483
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 22, 15, 54, 1), 'end_ts': 1440284313416, 'start_ts': 1440284041482, 'end_time': Timestamp('2015-08-22 15:58:33'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (8, 29), formatted_time.head() = 1 2015-08-22 15:54:37
2 2015-08-22 15:55:15
3 2015-08-22 15:55:45
4 2015-08-22 15:56:16
5 2015-08-22 15:56:42
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 15:58:33 -> 2015-08-22 16:04:05 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440284313416}}, {'data.mTime': {'$lt': 1440284645166}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 15:58:33 -> 2015-08-22 16:04:05 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (10, 28) to (10, 28)
DEBUG:root:quartile values are 0.25 0.102168
0.75 0.226871
Name: speed, dtype: float64
DEBUG:root:iqr 0.124702521081
DEBUG:root:For cluster 0 - 2, distance = 13.5432703889, is_cluster = True
DEBUG:root:For cluster 2 - 9, distance = 4.56064112783, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 2, 13.5432703889), Segment(2, 9, 4.56064112783)] with size 2
DEBUG:root:Processing segment 1: Segment(2, 9, 4.56064112783), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(2, 9, 4.56064112783)]
DEBUG:root:after setting values, outlier_mask = [2 3 4 5 6 7 8]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
2 37.391108 -122.088963 52.134 2015-08-22 16:00:08
3 37.391136 -122.088923 51.000 2015-08-22 16:00:40
4 37.391079 -122.088898 31.500 2015-08-22 16:01:12
5 37.391074 -122.088911 30.000 2015-08-22 16:01:42
6 37.391096 -122.088887 37.500 2015-08-22 16:02:13
7 37.391098 -122.088885 36.000 2015-08-22 16:02:45
8 37.391080 -122.088925 36.000 2015-08-22 16:03:17
DEBUG:root:quartile values are 0.25 0.237312
0.75 0.362896
Name: speed, dtype: float64
DEBUG:root:iqr 0.125583941843
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 15:58:33'), 'end_ts': 1440284645166, 'start_ts': 1440284313416, 'end_time': Timestamp('2015-08-22 16:04:05'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (3, 28), formatted_time.head() = 0 2015-08-22 15:59:05
1 2015-08-22 15:59:37
9 2015-08-22 16:03:33
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 16:04:05 -> 2015-08-22 16:39:36 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440284645166}}, {'data.mTime': {'$lt': 1440286776303}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 16:04:05 -> 2015-08-22 16:39:36 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (9, 28) to (9, 28)
DEBUG:root:quartile values are 0.25 0.10407
0.75 0.19675
Name: speed, dtype: float64
DEBUG:root:iqr 0.0926797120988
DEBUG:root:For cluster 0 - 8, distance = 2.42562677864, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 8, 2.42562677864)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 16:04:05'), 'end_ts': 1440286776303, 'start_ts': 1440284645166, 'end_time': Timestamp('2015-08-22 16:39:36'), 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (9, 28), formatted_time.head() = 0 2015-08-22 16:04:36
1 2015-08-22 16:05:24
2 2015-08-22 16:05:40
3 2015-08-22 16:06:12
4 2015-08-22 16:06:42
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 16:39:36 -> 2015-08-22 16:40:32 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440286776303}}, {'data.mTime': {'$lt': 1440286832745}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 16:39:36 -> 2015-08-22 16:40:32 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (8, 28) to (8, 28)
DEBUG:root:quartile values are 0.25 1.188639
0.75 1.568490
Name: speed, dtype: float64
DEBUG:root:iqr 0.37985029445
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 1 - 7, distance = 35.7666169101, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0), Segment(1, 7, 35.7666169101)] with size 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 0: Segment(0, 1, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = -1
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(0, 1, 0.0)]
DEBUG:root:after setting values, outlier_mask = [0]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
0 37.391642 -122.087584 10 2015-08-22 16:39:49
DEBUG:root:quartile values are 0.25 1.132363
0.75 1.478155
Name: speed, dtype: float64
DEBUG:root:iqr 0.345791405158
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 16:39:36'), 'end_ts': 1440286832745, 'start_ts': 1440286776303, 'end_time': Timestamp('2015-08-22 16:40:32'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (7, 28), formatted_time.head() = 1 2015-08-22 16:39:55
2 2015-08-22 16:40:01
3 2015-08-22 16:40:06
4 2015-08-22 16:40:12
5 2015-08-22 16:40:17
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-22 16:40:32 -> 2015-08-22 16:41:18 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440286832745}}, {'data.mTime': {'$lt': 1440286878755}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-22 16:40:32 -> 2015-08-22 16:41:18 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (8, 28) to (8, 28)
DEBUG:root:quartile values are 0.25 1.037143
0.75 1.245864
Name: speed, dtype: float64
DEBUG:root:iqr 0.208720845385
DEBUG:root:For cluster 0 - 7, distance = 34.1841055459, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 7, 34.1841055459)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-22 16:40:32'), 'end_ts': 1440286878755, 'start_ts': 1440286832745, 'end_time': Timestamp('2015-08-22 16:41:18'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (8, 28), formatted_time.head() = 0 2015-08-22 16:40:37
1 2015-08-22 16:40:43
2 2015-08-22 16:40:48
3 2015-08-22 16:40:53
4 2015-08-22 16:40:58
Name: formatted_time, dtype: datetime64[ns]
In [34]:
ipy.inline_maps([[map] for map in section_map_list_22], len(section_map_list_22), 1)
Out[34]:
In [34]:
Content source: joshzarrabi/e-mission-server
Similar notebooks: