In [1]:
import emission.storage.decorations.location_queries as lq
In [2]:
reload(lq)
Out[2]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>
In [3]:
import logging
logging.getLogger().setLevel(logging.DEBUG)
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,1,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]:
tomUUID = UUID('b0d937d0-70ef-305e-9563-440369012b39')
In [21]:
reload(lq)
Out[21]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>
Our algorithm:
In [22]:
import emission.analysis.classification.segmentation.trip_segmentation as ts
In [40]:
reload(ts)
Out[40]:
<module 'emission.analysis.classification.segmentation.trip_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/trip_segmentation.py'>
In [24]:
import emission.analysis.classification.segmentation.section_segmentation as ss
In [25]:
reload(ss)
Out[25]:
<module 'emission.analysis.classification.segmentation.section_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/section_segmentation.pyc'>
In [26]:
import emission.analysis.classification.cleaning.speed_outlier_detection as cso
import emission.analysis.classification.cleaning.jump_smoothing as cjs
In [27]:
reload(cjs)
Out[27]:
<module 'emission.analysis.classification.cleaning.jump_smoothing' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/cleaning/jump_smoothing.pyc'>
In [28]:
my_points_time_df_aug_24 = lq.get_plottable_df(myUUID, "time", get_aug_dt(24), get_aug_dt(25))
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440403200000.0}}, {'data.mTime': {'$lt': 1440489600000.0}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
In [50]:
my_points_time_df_aug_24.iloc[42].name
Out[50]:
42
In [55]:
reload(ts)
Out[55]:
<module 'emission.analysis.classification.segmentation.trip_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/trip_segmentation.py'>
In [56]:
my_segment_points_aug_24 = ts.segment_into_trips(my_points_time_df_aug_24)
DEBUG:root:filtering points Int64Index([30, 31, 86], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (103, 29) to (100, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
------------------------------2015-08-24 15:58:19------------------------------
Appending currPoint because the current start point is None
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 11.493785929870793, 'formatted_time': Timestamp('2015-08-24 15:58:19'), u'mHasAccuracy': True, u'mHasAltitude': True, u'write_ts': 1440457100492, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 10.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.3930953, u'mAltitude': -6.20001220703125, u'mExtras': {u'mAllowFds': True, u'mFdsKnown': True, u'mHasFds': False, u'mParcelledData': {u'mNativePtr': 1468722744, u'mOwnsNativeParcelObject': True}}, u'mSpeed': 11.259, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': True, 'distance': 115.35163559218327, u'read_ts': 0, u'mElapsedRealtimeNanos': 352630294003013, u'mResults': [0, 0], 'idx': 0, u'mBearing': 17, u'mLongitude': -122.0849125, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440457099385, u'mHasBearing': True}) with idx 0
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-24 15:58:24------------------------------
last5MinsDistances = [ 53.30377258] with length 1
last10PointsDistances = [ 53.30377258 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:30------------------------------
last5MinsDistances = [ 139.54759995 87.55134746] with length 2
last10PointsDistances = [ 139.54759995 87.55134746 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:35------------------------------
last5MinsDistances = [ 211.29283674 158.86596429 71.81015994] with length 3
last10PointsDistances = [ 211.29283674 158.86596429 71.81015994 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:41------------------------------
last5MinsDistances = [ 272.58657349 219.58494542 133.93766572 63.0542565 ] with length 4
last10PointsDistances = [ 272.58657349 219.58494542 133.93766572 63.0542565 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:46------------------------------
last5MinsDistances = [ 271.54593291 218.46787372 133.218938 62.8513798 3.69215108] with length 5
last10PointsDistances = [ 271.54593291 218.46787372 133.218938 62.8513798 3.69215108
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:51------------------------------
last5MinsDistances = [ 327.52535262 274.37597261 189.32074665 118.49154845 55.48113289
56.11103568] with length 6
last10PointsDistances = [ 327.52535262 274.37597261 189.32074665 118.49154845 55.48113289
56.11103568 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 15:58:56------------------------------
last5MinsDistances = [ 398.97319212 345.83371305 260.53650893 189.26204789 126.60348199
127.46513849 71.45865461] with length 7
last10PointsDistances = [ 398.97319212 345.83371305 260.53650893 189.26204789 126.60348199
127.46513849 71.45865461 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-24 15:59:02------------------------------
last5MinsDistances = [ 478.66565261 425.60565906 339.82523473 268.22089826 206.08819771
207.13809967 151.35879871 80.04180677] with length 8
last10PointsDistances = [ 478.66565261 425.60565906 339.82523473 268.22089826 206.08819771
207.13809967 151.35879871 80.04180677 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 478.665652615, last10PointsDistance.max() = 478.665652615
------------------------------2015-08-24 15:59:08------------------------------
last5MinsDistances = [ 575.89216031 522.77465008 437.1802496 365.60138435 303.37102755
304.34836202 248.40475334 176.9468915 97.38375034] with length 9
last10PointsDistances = [ 522.77465008 437.1802496 365.60138435 303.37102755 304.34836202
248.40475334 176.9468915 97.38375034 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 575.89216031, last10PointsDistance.max() = 522.77465008
------------------------------2015-08-24 15:59:13------------------------------
last5MinsDistances = [ 646.5285311 593.37105831 507.94189667 436.40057147 374.08427095
375.01386455 319.00375871 247.55767374 168.2027233 70.83442126] with length 10
last10PointsDistances = [ 507.94189667 436.40057147 374.08427095 375.01386455 319.00375871
247.55767374 168.2027233 70.83442126 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 646.528531104, last10PointsDistance.max() = 507.941896669
------------------------------2015-08-24 15:59:18------------------------------
last5MinsDistances = [ 659.73026294 606.96590784 520.31362368 448.50398669 387.53321858
388.85612504 333.65528853 262.77901401 182.92675718 90.86940137
44.788791 ] with length 11
last10PointsDistances = [ 448.50398669 387.53321858 388.85612504 333.65528853 262.77901401
182.92675718 90.86940137 44.788791 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 11
last5MinsDistances.max() = 659.730262938, last10PointsDistance.max() = 448.503986692
------------------------------2015-08-24 15:59:23------------------------------
last5MinsDistances = [ 606.73394858 554.26827669 467.18896963 395.46603862 335.50148484
337.04546017 282.73929865 213.11523492 135.02894556 61.46055673
73.4662366 56.98266504] with length 12
last10PointsDistances = [ 335.50148484 337.04546017 282.73929865 213.11523492 135.02894556
61.46055673 73.4662366 56.98266504 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 12
last5MinsDistances.max() = 606.73394858, last10PointsDistance.max() = 337.045460172
------------------------------2015-08-24 15:59:28------------------------------
last5MinsDistances = [ 561.84390975 509.30811713 422.31266362 350.5545111 290.41363694
291.94027991 237.62135646 168.1859332 91.07267321 48.73926423
100.80026377 99.08148101 45.12607903] with length 13
last10PointsDistances = [ 291.94027991 237.62135646 168.1859332 91.07267321 48.73926423
100.80026377 99.08148101 45.12607903 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 13
last5MinsDistances.max() = 561.843909748, last10PointsDistance.max() = 291.940279907
------------------------------2015-08-24 15:59:33------------------------------
last5MinsDistances = [ 537.86383062 484.80313049 398.985166 327.34023877 265.28383826
266.33606877 210.52341724 139.12920676 59.19869353 38.52000632
109.28375695 124.88850457 82.31505931 45.82377194] with length 14
last10PointsDistances = [ 210.52341724 139.12920676 59.19869353 38.52000632 109.28375695
124.88850457 82.31505931 45.82377194 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 14
last5MinsDistances.max() = 537.863830621, last10PointsDistance.max() = 210.523417236
------------------------------2015-08-24 15:59:39------------------------------
last5MinsDistances = [ 546.66507462 493.9125445 416.05303341 349.83797545 288.31700517
287.75349043 235.8503873 177.15725503 134.33581363 124.67550977
158.6613569 198.88464092 185.75167389 165.51567856 123.38605001] with length 15
last10PointsDistances = [ 177.15725503 134.33581363 124.67550977 158.6613569 198.88464092
185.75167389 165.51567856 123.38605001 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 15
last5MinsDistances.max() = 546.665074617, last10PointsDistance.max() = 198.884640924
------------------------------2015-08-24 15:59:44------------------------------
last5MinsDistances = [ 575.89351488 525.57371267 457.9677017 400.23516381 344.65844959
343.07086134 300.07998508 257.7840317 235.19281101 228.95649035
247.68730452 291.61741205 288.52367366 272.0587665 230.43682381
107.05081582] with length 16
last10PointsDistances = [ 235.19281101 228.95649035 247.68730452 291.61741205 288.52367366
272.0587665 230.43682381 107.05081582 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 16
last5MinsDistances.max() = 575.893514878, last10PointsDistance.max() = 291.617412054
------------------------------2015-08-24 15:59:50------------------------------
last5MinsDistances = [ 626.81186095 581.29834385 527.78319481 481.58975416 434.93772001
432.56492361 400.04360555 372.43779004 363.22386629 361.33162444
374.27414301 418.92828827 420.2359276 404.76883304 362.8879512
239.58172857 132.71022331] with length 17
last10PointsDistances = [ 361.33162444 374.27414301 418.92828827 420.2359276 404.76883304
362.8879512 239.58172857 132.71022331 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 17
last5MinsDistances.max() = 626.811860946, last10PointsDistance.max() = 420.235927604
------------------------------2015-08-24 15:59:55------------------------------
last5MinsDistances = [ 683.87613117 642.69751932 599.54967859 561.41677025 520.90585528
518.17639795 491.82765234 471.59553868 468.12140649 467.97532985
478.54417601 523.31720458 526.57404562 511.54230606 469.55762047
346.30970741 239.48380914 106.77359079] with length 18
last10PointsDistances = [ 478.54417601 523.31720458 526.57404562 511.54230606 469.55762047
346.30970741 239.48380914 106.77359079 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 18
last5MinsDistances.max() = 683.876131165, last10PointsDistance.max() = 526.574045621
------------------------------2015-08-24 16:00:01------------------------------
last5MinsDistances = [ 763.69305904 727.46791089 694.75286692 664.40565437 629.70271999
626.71395394 605.72439048 591.45436146 592.42648448 593.82373815
602.86537342 647.65241462 652.23873937 637.42220947 595.31162934
472.13400528 365.36716484 232.65958234 125.89153572] with length 19
last10PointsDistances = [ 647.65241462 652.23873937 637.42220947 595.31162934 472.13400528
365.36716484 232.65958234 125.89153572 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 19
last5MinsDistances.max() = 763.693059041, last10PointsDistance.max() = 652.238739365
------------------------------2015-08-24 16:00:07------------------------------
last5MinsDistances = [ 850.74036913 818.56780426 793.58519542 768.78521394 738.11280644
734.97801744 717.46041196 706.81353197 710.28895065 712.30608086
720.1533537 764.91537473 770.53695032 755.99643951 713.86817676
590.70940141 483.93912946 351.22935466 244.45629938 118.57789069] with length 20
last10PointsDistances = [ 770.53695032 755.99643951 713.86817676 590.70940141 483.93912946
351.22935466 244.45629938 118.57789069 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 20
last5MinsDistances.max() = 850.740369133, last10PointsDistance.max() = 770.536950316
------------------------------2015-08-24 16:00:12------------------------------
last5MinsDistances = [ 927.01995533 897.5939267 877.52503192 856.15233586 827.91707929
824.70539895 809.1905327 800.53290757 805.27119642 807.38765502
814.3345931 859.06136782 865.452803 851.18932316 809.09872063
685.92898275 579.13067952 446.42124494 339.64897365 213.79567363
95.2319911 ] with length 21
last10PointsDistances = [ 851.18932316 809.09872063 685.92898275 579.13067952 446.42124494
339.64897365 213.79567363 95.2319911 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 21
last5MinsDistances.max() = 927.019955334, last10PointsDistance.max() = 851.189323157
------------------------------2015-08-24 16:00:18------------------------------
last5MinsDistances = [ 1022.65136266 996.07723324 980.90328901 962.90560064 937.05547932
933.77558875 920.17844206 913.40146429 919.3328518 921.56854161
927.69670488 972.37800141 979.48036865 965.46720848 923.40705977
800.22981213 693.41105567 560.70490763 453.93680725 328.10024725
209.54062755 114.30876814] with length 22
last10PointsDistances = [ 923.40705977 800.22981213 693.41105567 560.70490763 453.93680725
328.10024725 209.54062755 114.30876814 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 22
last5MinsDistances.max() = 1022.65136266, last10PointsDistance.max() = 923.407059774
------------------------------2015-08-24 16:00:23------------------------------
last5MinsDistances = [ 1104.53168308 1079.94375953 1068.05909077 1052.29864072 1028.01226957
1024.69133664 1012.31997235 1006.71332186 1013.34896129 1015.56992639
1021.09396243 1065.73511102 1073.35950815 1059.55143279 1017.52840875
894.3393098 787.50055425 654.79948073 548.03715187 422.21783219
303.66623088 208.43442526 94.12837475] with length 23
last10PointsDistances = [ 894.3393098 787.50055425 654.79948073 548.03715187 422.21783219
303.66623088 208.43442526 94.12837475 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 23
last5MinsDistances.max() = 1104.53168308, last10PointsDistance.max() = 894.339309797
------------------------------2015-08-24 16:00:28------------------------------
last5MinsDistances = [ 1184.0825651 1161.18868875 1152.05454114 1138.16410599 1115.18847438
1111.8350566 1100.48652741 1095.8634241 1103.11480488 1105.39196234
1110.48317383 1155.09032716 1163.09661084 1149.42488202 1107.4191595
984.22605636 877.3780422 744.68021546 637.92111043 512.10812664
393.55720186 298.32529136 184.01782342 89.89113877] with length 24
last10PointsDistances = [ 877.3780422 744.68021546 637.92111043 512.10812664 393.55720186
298.32529136 184.01782342 89.89113877 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 24
last5MinsDistances.max() = 1184.0825651, last10PointsDistance.max() = 877.378042195
------------------------------2015-08-24 16:00:34------------------------------
last5MinsDistances = [ 1285.47439191 1264.31365843 1257.91382099 1245.84799963 1224.12536828
1220.74288173 1210.33911428 1206.57606989 1214.28586095 1216.40534676
1220.89323191 1265.45171526 1273.97450705 1260.53628492 1218.58851149
1095.37580584 988.50247993 855.81485698 749.06626367 623.27819751
504.74148766 409.51167488 295.21046026 201.08282838 111.2062568 ] with length 25
last10PointsDistances = [ 855.81485698 749.06626367 623.27819751 504.74148766 409.51167488
295.21046026 201.08282838 111.2062568 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 25
last5MinsDistances.max() = 1285.47439191, last10PointsDistance.max() = 855.814856975
------------------------------2015-08-24 16:00:39------------------------------
last5MinsDistances = [ 1369.49787881 1349.43491837 1344.70739058 1333.71808418 1312.70193378
1309.3041721 1299.39696176 1296.02369101 1303.82553821 1305.56961901
1309.45236854 1353.9609825 1362.98604837 1349.82230627 1307.96460682
1184.7216263 1077.81434149 945.14591302 838.41688354 712.67217897
594.16556095 498.94595607 384.66640521 290.55298101 200.71687336
89.55053653] with length 26
last10PointsDistances = [ 838.41688354 712.67217897 594.16556095 498.94595607 384.66640521
290.55298101 200.71687336 89.55053653 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 1369.49787881, last10PointsDistance.max() = 838.41688354
------------------------------2015-08-24 16:00:44------------------------------
last5MinsDistances = [ 1443.79623909 1424.70985607 1421.48454978 1411.49482723 1391.16437245
1387.75180491 1378.35601741 1375.44697048 1383.49915386 1385.16736094
1388.73376134 1433.21143771 1442.51047875 1429.46983142 1387.64221089
1264.39084477 1157.47329005 1024.81234989 918.09017531 792.35730352
673.85679241 578.63896527 464.36119983 370.24744627 280.40388417
169.21363317 79.69486382] with length 27
last10PointsDistances = [ 792.35730352 673.85679241 578.63896527 464.36119983 370.24744627
280.40388417 169.21363317 79.69486382 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 27
last5MinsDistances.max() = 1443.79623909, last10PointsDistance.max() = 792.357303522
------------------------------2015-08-24 16:01:24------------------------------
last5MinsDistances = [ 1789.99670917 1775.37045779 1779.07152568 1773.9408056 1757.16734591
1753.68237086 1747.12843094 1747.19173584 1757.61961488 1760.86092559
1764.65366401 1809.11747395 1818.35448824 1804.95667063 1762.88980812
1639.73572456 1532.90766335 1400.20633561 1293.44181015 1167.60266851
1049.03089984 953.80705893 839.50683239 745.40721301 655.53201117
544.45707003 455.37396954 375.93620937] with length 28
last10PointsDistances = [ 1049.03089984 953.80705893 839.50683239 745.40721301 655.53201117
544.45707003 455.37396954 375.93620937 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 28
last5MinsDistances.max() = 1818.35448824, last10PointsDistance.max() = 1049.03089984
------------------------------2015-08-24 16:02:54------------------------------
last5MinsDistances = [ 2858.77728203 2836.94482954 2826.73407333 2809.12585281 2781.11175903
2777.93518088 2760.1991731 2744.76190389 2736.46008625 2715.24412879
2700.00418224 2741.31753563 2765.12642873 2763.1853461 2727.05421579
2606.13109734 2501.43958144 2374.67680682 2273.19506936 2154.79699889
2043.21675912 1953.42387688 1846.45673639 1758.70450353 1675.85176875
1573.31472441 1490.20405804 1418.20259784 1113.50356664] with length 29
last10PointsDistances = [ 1953.42387688 1846.45673639 1758.70450353 1675.85176875 1573.31472441
1490.20405804 1418.20259784 1113.50356664 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 29
last5MinsDistances.max() = 2858.77728203, last10PointsDistance.max() = 1953.42387688
------------------------------2015-08-24 16:03:24------------------------------
last5MinsDistances = [ 3025.98113338 2999.47437818 2964.21962667 2961.32369632 2936.56125068
2911.68922077 2892.35012937 2857.8179264 2832.7033 2871.06407747
2902.04882087 2906.5219156 2874.75861844 2758.68437957 2658.55762601
2539.50404071 2444.75976975 2335.25514418 2232.41735586 2149.85538609
2052.34190563 1972.86556671 1898.65875617 1807.22779029 1733.15838162
1670.41152329 1423.94721432 426.56484781] with length 28
last10PointsDistances = [ 2052.34190563 1972.86556671 1898.65875617 1807.22779029 1733.15838162
1670.41152329 1423.94721432 426.56484781 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 28
last5MinsDistances.max() = 3025.98113338, last10PointsDistance.max() = 2052.34190563
------------------------------2015-08-24 16:03:54------------------------------
last5MinsDistances = [ 2885.71660469 2867.34213992 2833.97564489 2809.73326485 2848.39661612
2878.75516186 2882.6517404 2850.46888393 2733.86012685 2633.23483117
2513.38377349 2417.95143371 2307.55629785 2203.85077274 2120.57607315
2022.14807429 1941.88389333 1866.87277229 1774.42522665 1699.53860716
1635.98787523 1385.0723306 383.27807133 43.97191793] with length 24
last10PointsDistances = [ 1941.88389333 1866.87277229 1774.42522665 1699.53860716 1635.98787523
1385.0723306 383.27807133 43.97191793 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 24
last5MinsDistances.max() = 2885.71660469, last10PointsDistance.max() = 1941.88389333
------------------------------2015-08-24 16:04:24------------------------------
last5MinsDistances = [ 2875.35652636 2843.03104964 2726.24337454 2625.45087462 2505.33044022
2409.66504996 2298.96721462 2194.96596468 2111.44779886 2012.70623677
1932.17094946 1856.881864 1764.08158328 1688.91029591 1625.07774586
1372.56728174 368.89335075 58.51019465 14.54698907] with length 19
last10PointsDistances = [ 1856.881864 1764.08158328 1688.91029591 1625.07774586 1372.56728174
368.89335075 58.51019465 14.54698907 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 19
last5MinsDistances.max() = 2875.35652636, last10PointsDistance.max() = 1856.881864
------------------------------2015-08-24 16:04:54------------------------------
last5MinsDistances = [ 2420.11412135 2309.18795639 2204.95297886 2121.23405863 2022.22203265
1941.44145755 1865.88896804 1772.73585561 1697.26339234 1633.11632598
1378.41657284 365.67121753 61.06024518 20.99237511 13.7148564 ] with length 15
last10PointsDistances = [ 1772.73585561 1697.26339234 1633.11632598 1378.41657284 365.67121753
61.06024518 20.99237511 13.7148564 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 15
last5MinsDistances.max() = 2420.11412135, last10PointsDistance.max() = 1772.73585561
------------------------------2015-08-24 16:05:24------------------------------
last5MinsDistances = [ 1866.1099853 1772.96848787 1697.50549126 1633.36790845 1378.72449739
366.08537072 60.64505203 20.63307318 13.60182408 0.41520816] with length 10
last10PointsDistances = [ 1697.50549126 1633.36790845 1378.72449739 366.08537072 60.64505203
20.63307318 13.60182408 0.41520816 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 1866.1099853, last10PointsDistance.max() = 1697.50549126
------------------------------2015-08-24 16:05:54------------------------------
last5MinsDistances = [ 1600.78073589 512.74957418 245.90040504 260.90240239 266.75553658
255.10479477 254.99056899] with length 7
last10PointsDistances = [ 1873.12256221 1600.78073589 512.74957418 245.90040504 260.90240239
266.75553658 255.10479477 254.99056899 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 1600.78073589, last10PointsDistance.max() = 1873.12256221
------------------------------2015-08-24 16:06:36------------------------------
last5MinsDistances = [ 514.40778282 292.90628094 302.82316083 306.87036648 294.32949998
294.27357559 55.55174616] with length 7
last10PointsDistances = [ 1614.77273899 514.40778282 292.90628094 302.82316083 306.87036648
294.32949998 294.27357559 55.55174616 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 514.407782824, last10PointsDistance.max() = 1614.77273899
------------------------------2015-08-24 16:07:24------------------------------
last5MinsDistances = [ 434.24262427 331.28419236 325.14673391 323.82526849 310.11880265
310.22362047 158.29826674 118.24736297] with length 8
last10PointsDistances = [ 434.24262427 331.28419236 325.14673391 323.82526849 310.11880265
310.22362047 158.29826674 118.24736297 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 434.242624265, last10PointsDistance.max() = 434.242624265
------------------------------2015-08-24 16:07:54------------------------------
last5MinsDistances = [ 449.92961235 438.84530443 435.52342658 421.89619072 422.06004847
276.29107766 227.46984636 124.33237804] with length 8
last10PointsDistances = [ 449.92961235 438.84530443 435.52342658 421.89619072 422.06004847
276.29107766 227.46984636 124.33237804 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 449.929612352, last10PointsDistance.max() = 449.929612352
------------------------------2015-08-24 16:08:24------------------------------
last5MinsDistances = [ 434.28966539 431.04266422 417.40705905 417.56877518 271.27438808
222.56011222 119.28752399 5.06953063] with length 8
last10PointsDistances = [ 434.28966539 431.04266422 417.40705905 417.56877518 271.27438808
222.56011222 119.28752399 5.06953063 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 434.289665387, last10PointsDistance.max() = 434.289665387
------------------------------2015-08-24 16:08:54------------------------------
last5MinsDistances = [ 439.16722668 425.55640236 425.72417688 281.80611495 233.10319034
129.37389536 5.69449273 10.5528956 ] with length 8
last10PointsDistances = [ 439.16722668 425.55640236 425.72417688 281.80611495 233.10319034
129.37389536 5.69449273 10.5528956 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 439.167226684, last10PointsDistance.max() = 439.167226684
------------------------------2015-08-24 16:09:24------------------------------
last5MinsDistances = [ 426.0873648 426.25684997 283.35202958 234.77169866 130.60780947
7.54781024 12.22668733 1.99251101] with length 8
last10PointsDistances = [ 426.0873648 426.25684997 283.35202958 234.77169866 130.60780947
7.54781024 12.22668733 1.99251101 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 426.256849965, last10PointsDistance.max() = 426.256849965
------------------------------2015-08-24 16:09:54------------------------------
last5MinsDistances = [ 425.01509313 282.20860413 233.69061067 129.37619758 6.72248353
11.19943675 1.83278591 1.26238386] with length 8
last10PointsDistances = [ 425.01509313 282.20860413 233.69061067 129.37619758 6.72248353
11.19943675 1.83278591 1.26238386 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 425.015093126, last10PointsDistance.max() = 425.015093126
------------------------------2015-08-24 16:10:24------------------------------
last5MinsDistances = [ 282.40646134 233.89101094 129.56203821 6.91371466 11.4001371
1.91955569 1.10399991 0.20086199] with length 8
last10PointsDistances = [ 282.40646134 233.89101094 129.56203821 6.91371466 11.4001371
1.91955569 1.10399991 0.20086199 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 282.40646134, last10PointsDistance.max() = 282.40646134
------------------------------2015-08-24 16:10:54------------------------------
last5MinsDistances = [ 234.11638789 130.02198148 6.88519479 11.56693403 1.40600482
0.66501236 0.87447603 0.80976776] with length 8
last10PointsDistances = [ 234.11638789 130.02198148 6.88519479 11.56693403 1.40600482
0.66501236 0.87447603 0.80976776 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 234.11638789, last10PointsDistance.max() = 234.11638789
------------------------------2015-08-24 16:11:24------------------------------
last5MinsDistances = [ 234.19273231 130.09965319 6.95478512 11.6425324 1.45108133
0.59334579 0.92810445 0.84986826 0.07813162] with length 9
last10PointsDistances = [ 130.09965319 6.95478512 11.6425324 1.45108133 0.59334579
0.92810445 0.84986826 0.07813162 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 234.192732306, last10PointsDistance.max() = 130.099653195
------------------------------2015-08-24 16:11:54------------------------------
last5MinsDistances = [ 130.34158675 7.424642 12.04433232 1.98865865 0.31875379
0.97079187 0.79980196 0.58443374 0.53839159] with length 9
last10PointsDistances = [ 7.424642 12.04433232 1.98865865 0.31875379 0.97079187
0.79980196 0.58443374 0.53839159 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 130.341586754, last10PointsDistance.max() = 12.0443323248
------------------------------2015-08-24 16:12:24------------------------------
last5MinsDistances = [ 7.60535312 12.20901242 2.17491923 0.35574753 1.08345806
0.89726564 0.77220075 0.72387248 0.18834664] with length 9
last10PointsDistances = [ 12.20901242 2.17491923 0.35574753 1.08345806 0.89726564
0.77220075 0.72387248 0.18834664 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 12.2090124202, last10PointsDistance.max() = 12.2090124202
last5MinPoints.median = 42.0 (Int64Index([38, 39, 40, 41, 42, 43, 44, 45, 46], dtype='int64')), last10Points_df = 43.0 (Int64Index([39, 40, 41, 42, 43, 44, 45, 46, 47], dtype='int64')), sel index = 42
Appending last_trip_end_point filter time
formatted_time 2015-08-24 16:09:54
key background/location
mAccuracy 37.5
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 353325766000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.41642
mLon1 0
mLon2 0
mLongitude -122.1083
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440457794733
platform android
read_ts 0
type message
write_ts 1440457795054
distance 1.262384
speed 0.04204302
Name: 42, dtype: object with index 42
Found trip end at 2015-08-24 16:09:54
------------------------------2015-08-24 16:12:54------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.009068049267514273, 'formatted_time': Timestamp('2015-08-24 16:12:54'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440457975433, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 37.5, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.4164237, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0.0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 0.27207775022249825, u'read_ts': 0, u'mElapsedRealtimeNanos': 353505897000000, u'mResults': [0, 0], 'idx': 48, u'mBearing': 0, u'mLongitude': -122.1082884, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440457974864, u'mHasBearing': False}) with idx 48
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-24 16:49:42------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 158.791131 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-24 16:50:15------------------------------
last5MinsDistances = [ 88.83340551] with length 1
last10PointsDistances = [ 238.87949608 88.83340551 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 16:50:45------------------------------
last5MinsDistances = [ 103.90542289 67.32939093] with length 2
last10PointsDistances = [ 262.07507832 103.90542289 67.32939093 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 16:51:15------------------------------
last5MinsDistances = [ 283.02982441 268.54253178 202.07334674] with length 3
last10PointsDistances = [ 417.69083853 283.02982441 268.54253178 202.07334674 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 16:51:45------------------------------
last5MinsDistances = [ 284.45165411 271.38765084 204.73890501 4.98165797] with length 4
last10PointsDistances = [ 417.89809447 284.45165411 271.38765084 204.73890501 4.98165797
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 16:52:15------------------------------
last5MinsDistances = [ 296.74841371 286.82626625 219.8957533 21.88276157 17.32486066] with length 5
last10PointsDistances = [ 426.737272 296.74841371 286.82626625 219.8957533 21.88276157
17.32486066 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 16:52:45------------------------------
last5MinsDistances = [ 285.78641523 270.61217676 204.26046682 3.26935397 6.69418816
21.87530067] with length 6
last10PointsDistances = [ 420.78991997 285.78641523 270.61217676 204.26046682 3.26935397
6.69418816 21.87530067 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 16:53:08------------------------------
last5MinsDistances = [ 282.11025582 270.11723775 203.33022505 7.84046054 3.83665883
17.20978566 10.26010837] with length 7
last10PointsDistances = [ 414.87092703 282.11025582 270.11723775 203.33022505 7.84046054
3.83665883 17.20978566 10.26010837 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 282.110255817, last10PointsDistance.max() = 414.870927027
------------------------------2015-08-24 16:53:14------------------------------
last5MinsDistances = [ 322.12040304 309.11147616 242.65148262 40.58331424 38.11875049
26.32603614 38.53384385 40.09334271] with length 8
last10PointsDistances = [ 322.12040304 309.11147616 242.65148262 40.58331424 38.11875049
26.32603614 38.53384385 40.09334271 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 322.120403041, last10PointsDistance.max() = 322.120403041
------------------------------2015-08-24 16:53:20------------------------------
last5MinsDistances = [ 399.02291558 388.79495829 322.24946892 120.2524724 117.51483592
103.00514883 118.21933914 119.04524286 79.69231741] with length 9
last10PointsDistances = [ 388.79495829 322.24946892 120.2524724 117.51483592 103.00514883
118.21933914 119.04524286 79.69231741 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 399.022915585, last10PointsDistance.max() = 388.79495829
------------------------------2015-08-24 16:53:26------------------------------
last5MinsDistances = [ 473.36188156 464.7648483 398.19029621 196.22231665 193.45221382
178.64087638 194.18109477 194.91007284 155.65978521 75.97000055] with length 10
last10PointsDistances = [ 398.19029621 196.22231665 193.45221382 178.64087638 194.18109477
194.91007284 155.65978521 75.97000055 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 473.36188156, last10PointsDistance.max() = 398.19029621
------------------------------2015-08-24 16:53:31------------------------------
last5MinsDistances = [ 532.65251043 525.49411733 458.84775744 256.95982071 254.13271293
239.1197176 254.94357128 255.52439092 216.41457688 136.72430849
60.78999079] with length 11
last10PointsDistances = [ 256.95982071 254.13271293 239.1197176 254.94357128 255.52439092
216.41457688 136.72430849 60.78999079 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 11
last5MinsDistances.max() = 532.652510425, last10PointsDistance.max() = 256.959820711
------------------------------2015-08-24 16:53:37------------------------------
last5MinsDistances = [ 604.22609544 600.02444108 533.15304278 331.68130611 328.68193966
313.25735717 329.76859667 329.90720742 291.24730413 211.69248999
136.10413497 75.65750609] with length 12
last10PointsDistances = [ 328.68193966 313.25735717 329.76859667 329.90720742 291.24730413
211.69248999 136.10413497 75.65750609 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 12
last5MinsDistances.max() = 604.226095437, last10PointsDistance.max() = 329.907207422
------------------------------2015-08-24 16:53:42------------------------------
last5MinsDistances = [ 672.02925306 671.50096143 604.38931185 403.8261175 400.6195674
384.76496962 402.05188679 401.64170745 363.63682653 284.51150388
209.64770061 149.85904304 74.60279813] with length 13
last10PointsDistances = [ 384.76496962 402.05188679 401.64170745 363.63682653 284.51150388
209.64770061 149.85904304 74.60279813 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 13
last5MinsDistances.max() = 672.02925306, last10PointsDistance.max() = 402.051886794
------------------------------2015-08-24 16:53:48------------------------------
last5MinsDistances = [ 765.09829604 768.52602153 701.25594813 501.98144174 498.593756
482.39632151 500.33775756 499.42803232 462.10877878 383.55330385
309.4138202 250.11756851 175.05334732 100.45145135] with length 14
last10PointsDistances = [ 500.33775756 499.42803232 462.10877878 383.55330385 309.4138202
250.11756851 175.05334732 100.45145135 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 14
last5MinsDistances.max() = 768.526021528, last10PointsDistance.max() = 500.337757565
------------------------------2015-08-24 16:53:53------------------------------
last5MinsDistances = [ 847.56365494 853.1228304 785.81089147 587.24326224 583.7850391
567.46039237 585.65219428 584.54195063 547.51647944 469.19443821
395.2524072 335.9883969 260.82896686 186.23925201 85.87728713] with length 15
last10PointsDistances = [ 584.54195063 547.51647944 469.19443821 395.2524072 335.9883969
260.82896686 186.23925201 85.87728713 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 15
last5MinsDistances.max() = 853.122830403, last10PointsDistance.max() = 584.54195063
------------------------------2015-08-24 16:53:58------------------------------
last5MinsDistances = [ 936.44588141 942.09671059 874.79135614 675.94029848 672.52558949
656.26672392 674.3128859 673.32480658 636.10279984 557.52280793
483.1362495 423.39443089 347.88149808 273.56714001 173.99963331
89.04244227] with length 16
last10PointsDistances = [ 636.10279984 557.52280793 483.1362495 423.39443089 347.88149808
273.56714001 173.99963331 89.04244227 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 16
last5MinsDistances.max() = 942.096710589, last10PointsDistance.max() = 636.102799843
------------------------------2015-08-24 16:54:04------------------------------
last5MinsDistances = [ 1033.23416696 1036.89414478 969.66388222 769.69433843 766.43205357
750.43126751 767.94993011 767.38302969 729.55876016 650.41917608
575.24585657 514.85337676 439.2169267 365.93383362 268.59561011
186.01516029 98.4099368 ] with length 17
last10PointsDistances = [ 650.41917608 575.24585657 514.85337676 439.2169267 365.93383362
268.59561011 186.01516029 98.4099368 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 17
last5MinsDistances.max() = 1036.89414478, last10PointsDistance.max() = 650.419176079
------------------------------2015-08-24 16:54:10------------------------------
last5MinsDistances = [ 1122.93980137 1123.00442523 1056.00650935 854.77864584 851.74939239
836.17833341 852.86962855 852.92132245 814.34638382 734.75129162
658.9516258 598.18215752 523.1013382 451.83545042 358.2955251
279.52988361 194.8959372 98.21289361] with length 18
last10PointsDistances = [ 658.9516258 598.18215752 523.1013382 451.83545042 358.2955251
279.52988361 194.8959372 98.21289361 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 18
last5MinsDistances.max() = 1123.00442523, last10PointsDistance.max() = 658.951625802
------------------------------2015-08-24 16:54:15------------------------------
last5MinsDistances = [ 1196.12134327 1192.73248737 1126.07644488 924.19017317 921.37939956
906.24244509 922.13963817 922.74629935 883.62595632 803.93813185
727.96813458 667.24728119 593.16532027 524.0999379 434.32884273
359.06840164 277.19656206 182.26667582 84.5055105 ] with length 19
last10PointsDistances = [ 667.24728119 593.16532027 524.0999379 434.32884273 359.06840164
277.19656206 182.26667582 84.5055105 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 19
last5MinsDistances.max() = 1196.12134327, last10PointsDistance.max() = 667.247281192
------------------------------2015-08-24 16:54:21------------------------------
last5MinsDistances = [ 1283.09199778 1276.3018792 1210.09999113 1008.02820126 1005.4336814
990.75126704 1005.84814946 1006.98286147 967.45494071 887.94166189
812.11412373 751.72132574 678.92139986 612.13366228 525.89553443
453.55100819 373.70472825 279.76745575 182.11344988 97.61386776] with length 20
last10PointsDistances = [ 678.92139986 612.13366228 525.89553443 453.55100819 373.70472825
279.76745575 182.11344988 97.61386776 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 20
last5MinsDistances.max() = 1283.09199778, last10PointsDistance.max() = 678.921399858
------------------------------2015-08-24 16:54:26------------------------------
last5MinsDistances = [ 1358.09338647 1348.85859834 1283.05557593 1081.12196729 1078.68269607
1064.34025922 1078.85484505 1080.3567539 1040.60961167 961.3638942
885.79608303 825.77051161 754.00306391 688.83621559 604.92661019
534.32919895 455.56677856 362.04383793 264.38901458 179.89976996
82.29207703] with length 21
last10PointsDistances = [ 688.83621559 604.92661019 534.32919895 455.56677856 362.04383793
264.38901458 179.89976996 82.29207703 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 21
last5MinsDistances.max() = 1358.09338647, last10PointsDistance.max() = 688.836215586
------------------------------2015-08-24 16:54:32------------------------------
last5MinsDistances = [ 1462.18616238 1451.63414571 1386.08762476 1184.32719361 1181.97327612
1167.81914032 1182.01384538 1183.71342228 1143.87073848 1064.81474242
989.42971206 929.6263845 858.37370615 793.85089434 710.48110162
639.75592904 560.26214249 465.66204437 367.55720106 283.47844806
186.58269301 105.58508697] with length 22
last10PointsDistances = [ 710.48110162 639.75592904 560.26214249 465.66204437 367.55720106
283.47844806 186.58269301 105.58508697 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 22
last5MinsDistances.max() = 1462.18616238, last10PointsDistance.max() = 710.481101622
------------------------------2015-08-24 16:54:38------------------------------
last5MinsDistances = [ 1558.52565177 1547.93249537 1482.41780754 1280.67537169 1278.32685126
1264.18045269 1278.35869437 1280.07034933 1240.22306755 1161.17587514
1085.79224657 1025.98043762 954.65759641 889.88062721 805.7224811
733.81379867 652.89351695 557.02178296 458.82931157 375.70322139
280.30616409 201.08716917 96.36289263] with length 23
last10PointsDistances = [ 733.81379867 652.89351695 557.02178296 458.82931157 375.70322139
280.30616409 201.08716917 96.36289263 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 23
last5MinsDistances.max() = 1558.52565177, last10PointsDistance.max() = 733.813798674
------------------------------2015-08-24 16:54:44------------------------------
last5MinsDistances = [ 1633.40384804 1567.93509113 1366.22424482 1363.88668114 1349.76183017
1363.90144778 1365.63804011 1325.78039717 1246.75677255 1171.39079587
1111.59281946 1040.26802966 975.38507013 890.79580413 818.19554066
736.45573098 639.94040504 541.89807029 459.48661457 365.02231598
286.54923246 181.96696078 85.61785036] with length 23
last10PointsDistances = [ 736.45573098 639.94040504 541.89807029 459.48661457 365.02231598
286.54923246 181.96696078 85.61785036 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 23
last5MinsDistances.max() = 1633.40384804, last10PointsDistance.max() = 736.455730976
------------------------------2015-08-24 16:54:49------------------------------
last5MinsDistances = [ 1698.26438379 1632.82955739 1431.14277613 1428.81327216 1414.7044845
1428.81551408 1430.57043719 1390.70529515 1311.69933706 1236.3468284
1176.5599078 1105.23827413 1040.29336611 955.44010144 882.41874604
800.19615422 703.33864482 605.4502404 523.49608824 429.57093422
351.46259447 246.93377664 150.59071089 64.97303339] with length 24
last10PointsDistances = [ 703.33864482 605.4502404 523.49608824 429.57093422 351.46259447
246.93377664 150.59071089 64.97303339 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 24
last5MinsDistances.max() = 1698.26438379, last10PointsDistance.max() = 703.338644824
------------------------------2015-08-24 16:54:54------------------------------
last5MinsDistances = [ 1767.05311491 1701.62593876 1499.94093586 1497.61096094 1483.49873745
1497.61367251 1499.36733319 1459.50313409 1380.49359535 1305.13380224
1245.33321935 1173.95615168 1108.86377542 1023.62821397 950.1012275
867.3550616 770.16927195 672.49214774 591.05351693 497.73613966
420.07896057 315.70943058 219.35284432 133.74338532 68.79818024] with length 25
last10PointsDistances = [ 672.49214774 591.05351693 497.73613966 420.07896057 315.70943058
219.35284432 133.74338532 68.79818024 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 25
last5MinsDistances.max() = 1767.05311491, last10PointsDistance.max() = 672.49214774
------------------------------2015-08-24 16:55:00------------------------------
last5MinsDistances = [ 1857.17534498 1791.82238419 1590.1963834 1587.88634486 1573.81715631
1587.85846958 1589.65762339 1549.7747871 1470.81278092 1395.49475395
1335.7379538 1264.44017523 1199.39834075 1114.07107207 1040.28617552
957.21620194 859.8275484 762.32233166 681.21783393 588.19562953
510.60528617 406.12169065 309.79132427 224.17500831 159.20269907
90.5349049 ] with length 26
last10PointsDistances = [ 681.21783393 588.19562953 510.60528617 406.12169065 309.79132427
224.17500831 159.20269907 90.5349049 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 1857.17534498, last10PointsDistance.max() = 681.217833935
------------------------------2015-08-24 16:55:15------------------------------
last5MinsDistances = [ 1981.24007823 1780.03297977 1777.84273156 1764.04725457 1777.63382201
1779.70421754 1739.72511505 1661.09162855 1586.08354765 1526.66891085
1456.10690017 1392.03663639 1307.89852058 1234.86233268 1152.1816685
1054.91998047 957.30794885 875.84745656 782.07722204 703.40276336
598.19109329 502.33159528 417.10360411 352.52828953 284.83710256
195.22886617] with length 26
last10PointsDistances = [ 782.07722204 703.40276336 598.19109329 502.33159528 417.10360411
352.52828953 284.83710256 195.22886617 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 1981.24007823, last10PointsDistance.max() = 782.077222041
------------------------------2015-08-24 16:55:45------------------------------
last5MinsDistances = [ 2221.62881988 2219.40118449 2205.50940983 2219.24750484 2221.23303756
2181.28245328 2102.52635955 2027.38208205 1967.79497722 1896.76990077
1831.82599556 1745.9448901 1670.99778747 1586.6403036 1488.62315503
1391.97871823 1312.20866857 1220.29398752 1143.04201758 1038.39718386
942.14066992 856.55149579 791.5988545 722.96907708 632.43786389
441.89089797] with length 26
last10PointsDistances = [ 1143.04201758 1038.39718386 942.14066992 856.55149579 791.5988545
722.96907708 632.43786389 441.89089797 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 2221.62881988, last10PointsDistance.max() = 1143.04201758
------------------------------2015-08-24 16:56:15------------------------------
last5MinsDistances = [ 2435.33933571 2421.44247287 2435.18665429 2437.17000869 2397.22061694
2318.45782621 2243.30136429 2183.69405767 2112.5984011 2047.48891608
1961.22841625 1885.83956853 1801.1036218 1702.96078691 1606.61203671
1527.26501787 1435.76255222 1358.77524879 1254.22861832 1157.94421878
1072.34028798 1007.3757558 938.69961427 848.18467962 657.75796118
215.93915244] with length 26
last10PointsDistances = [ 1254.22861832 1157.94421878 1072.34028798 1007.3757558 938.69961427
848.18467962 657.75796118 215.93915244 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 2437.17000869, last10PointsDistance.max() = 1254.22861832
------------------------------2015-08-24 16:56:45------------------------------
last5MinsDistances = [ 2539.61151724 2554.03146292 2555.60880145 2515.82986466 2436.63033146
2361.06509935 2300.98398378 2228.76325403 2161.95800386 2073.15565927
1995.61949816 1909.43314285 1811.0302146 1716.12019402 1638.90821689
1549.98432092 1475.27290163 1372.1227284 1275.83592125 1190.41709685
1125.63043212 1056.88267767 967.0738184 783.10323759 348.14019132
155.32288157] with length 26
last10PointsDistances = [ 1275.83592125 1190.41709685 1125.63043212 1056.88267767 967.0738184
783.10323759 348.14019132 155.32288157 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 2555.60880145, last10PointsDistance.max() = 1275.83592125
------------------------------2015-08-24 16:57:45------------------------------
last5MinsDistances = [ 2740.20566211 2702.96207911 2624.14611365 2549.20126346 2488.86592858
2413.22236534 2339.67370108 2240.86974616 2155.66901126 2066.90305748
1974.01525592 1894.35050846 1835.28349517 1768.44373119 1713.34990971
1628.45797433 1543.20217836 1469.69128639 1414.92367878 1356.35835988
1285.29495413 1167.8110215 887.65030255 811.92853982 690.89217818] with length 25
last10PointsDistances = [ 1469.69128639 1414.92367878 1356.35835988 1285.29495413 1167.8110215
887.65030255 811.92853982 690.89217818 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 25
last5MinsDistances.max() = 2740.20566211, last10PointsDistance.max() = 1469.69128639
------------------------------2015-08-24 16:58:15------------------------------
last5MinsDistances = [ 2792.12666614 2719.88016841 2661.38692421 2586.44927669 2511.84792831
2411.40507313 2325.63390472 2239.60416651 2154.45787378 2087.35354635
2041.25161574 1989.77098265 1947.91791314 1877.3607034 1803.11958854
1740.42206509 1694.32402278 1644.87782611 1587.6463938 1505.78980702
1292.39349524 1239.79967728 1124.23079038 434.24067697] with length 24
last10PointsDistances = [ 1694.32402278 1644.87782611 1587.6463938 1505.78980702 1292.39349524
1239.79967728 1124.23079038 434.24067697 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 24
last5MinsDistances.max() = 2792.12666614, last10PointsDistance.max() = 1694.32402278
------------------------------2015-08-24 16:58:45------------------------------
last5MinsDistances = [ 2399.75446193 2313.96280405 2227.81438239 2142.40604072 2074.9178076
2028.4405642 1976.52963212 1934.31855879 1863.37458061 1788.83661269
1725.86193162 1679.55085873 1629.88744548 1572.35029435 1489.82613941
1275.70063837 1223.29027455 1108.00633849 418.25409451 16.69537383] with length 20
last10PointsDistances = [ 1629.88744548 1572.35029435 1489.82613941 1275.70063837 1223.29027455
1108.00633849 418.25409451 16.69537383 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 20
last5MinsDistances.max() = 2399.75446193, last10PointsDistance.max() = 1629.88744548
------------------------------2015-08-24 16:59:15------------------------------
last5MinsDistances = [ 2186.70414035 2154.41755958 2094.61858728 2028.97624023 1974.40298438
1934.64950653 1891.81922007 1844.05810616 1784.32073329 1609.97946867
1570.3668924 1458.7396076 770.22683329 336.49736867 352.17006066] with length 15
last10PointsDistances = [ 1844.05810616 1784.32073329 1609.97946867 1570.3668924 1458.7396076
770.22683329 336.49736867 352.17006066 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 15
last5MinsDistances.max() = 2186.70414035, last10PointsDistance.max() = 1844.05810616
------------------------------2015-08-24 16:59:45------------------------------
last5MinsDistances = [ 1987.03350867 1945.19357179 1898.80300754 1842.06600655 1672.39022289
1633.87512161 1522.38797731 833.77798018 399.8839004 415.63633255
63.64875988] with length 11
last10PointsDistances = [ 1842.06600655 1672.39022289 1633.87512161 1522.38797731 833.77798018
399.8839004 415.63633255 63.64875988 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 11
last5MinsDistances.max() = 1987.03350867, last10PointsDistance.max() = 1842.06600655
------------------------------2015-08-24 17:00:15------------------------------
last5MinsDistances = [ 1893.7220078 1860.43493954 1750.38584208 1062.22723331 628.36332239
644.1215296 292.00040096 228.48628921] with length 8
last10PointsDistances = [ 1893.7220078 1860.43493954 1750.38584208 1062.22723331 628.36332239
644.1215296 292.00040096 228.48628921 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1893.7220078, last10PointsDistance.max() = 1893.7220078
------------------------------2015-08-24 17:00:49------------------------------
last5MinsDistances = [ 1843.47020008 1733.14103926 1044.81793798 610.88759245 626.67200182
274.60569936 211.04313694 17.71884726] with length 8
last10PointsDistances = [ 1843.47020008 1733.14103926 1044.81793798 610.88759245 626.67200182
274.60569936 211.04313694 17.71884726 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1843.47020008, last10PointsDistance.max() = 1843.47020008
------------------------------2015-08-24 17:01:19------------------------------
last5MinsDistances = [ 1757.02598166 1068.85556009 634.98104219 650.74380219 298.6289614
235.10767192 6.64112421 24.21182249] with length 8
last10PointsDistances = [ 1757.02598166 1068.85556009 634.98104219 650.74380219 298.6289614
235.10767192 6.64112421 24.21182249 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1757.02598166, last10PointsDistance.max() = 1757.02598166
------------------------------2015-08-24 17:01:49------------------------------
last5MinsDistances = [ 1053.44194684 619.50111285 635.29047017 283.23333105 219.66534671
9.55025812 8.63474365 15.7727026 ] with length 8
last10PointsDistances = [ 1053.44194684 619.50111285 635.29047017 283.23333105 219.66534671
9.55025812 8.63474365 15.7727026 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1053.44194684, last10PointsDistance.max() = 1053.44194684
------------------------------2015-08-24 17:02:11------------------------------
last5MinsDistances = [ 1055.49048244 622.75007906 638.1912561 286.69737651 224.29200377
34.32407474 38.18784443 36.69269619 37.30602654] with length 9
last10PointsDistances = [ 622.75007906 638.1912561 286.69737651 224.29200377 34.32407474
38.18784443 36.69269619 37.30602654 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1055.49048244, last10PointsDistance.max() = 638.1912561
------------------------------2015-08-24 17:02:49------------------------------
last5MinsDistances = [ 629.47949908 645.23118764 293.10028506 229.59861808 1.34282153
18.94947266 5.6548983 10.86693101 33.82526592] with length 9
last10PointsDistances = [ 645.23118764 293.10028506 229.59861808 1.34282153 18.94947266
5.6548983 10.86693101 33.82526592 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 645.231187639, last10PointsDistance.max() = 645.231187639
------------------------------2015-08-24 17:03:49------------------------------
last5MinsDistances = [ 291.53086051 227.99333419 1.60374432 17.02968643 7.18950755
8.60357117 35.72986414 2.78945499] with length 8
last10PointsDistances = [ 291.53086051 227.99333419 1.60374432 17.02968643 7.18950755
8.60357117 35.72986414 2.78945499 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 291.53086051, last10PointsDistance.max() = 291.53086051
------------------------------2015-08-24 17:04:19------------------------------
last5MinsDistances = [ 232.16909703 3.77652537 21.4905994 3.23967758 13.29209161
34.42745932 2.57171856 4.80319945] with length 8
last10PointsDistances = [ 232.16909703 3.77652537 21.4905994 3.23967758 13.29209161
34.42745932 2.57171856 4.80319945 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 232.169097028, last10PointsDistance.max() = 232.169097028
------------------------------2015-08-24 17:04:49------------------------------
last5MinsDistances = [ 3.71357106 21.41317098 3.4250886 13.24949712 34.21236739
2.47182101 4.80242909 0.22118589] with length 8
last10PointsDistances = [ 3.71357106 21.41317098 3.4250886 13.24949712 34.21236739
2.47182101 4.80242909 0.22118589 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 34.2123673945, last10PointsDistance.max() = 34.2123673945
last5MinPoints.median = 89.5 (Int64Index([86, 87, 88, 89, 90, 91, 92, 93], dtype='int64')), last10Points_df = 90.0 (Int64Index([86, 87, 88, 89, 90, 91, 92, 93, 94], dtype='int64')), sel index = 89
Appending last_trip_end_point filter time
formatted_time 2015-08-24 17:01:49
key background/location
mAccuracy 40.5
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 356440623000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.39103
mLon1 0
mLon2 0
mLongitude -122.0862
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440460909591
platform android
read_ts 0
type message
write_ts 1440460909999
distance 15.7727
speed 0.5255991
Name: 89, dtype: object with index 89
Found trip end at 2015-08-24 17:01:49
------------------------------2015-08-24 17:05:19------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.08231994571311431, 'formatted_time': Timestamp('2015-08-24 17:05:19'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440461120095, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 36.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.3909718, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0.0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 2.4718210099276834, u'read_ts': 0, u'mElapsedRealtimeNanos': 356650802000000, u'mResults': [0, 0], 'idx': 95, u'mBearing': 0, u'mLongitude': -122.0862607, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440461119769, u'mHasBearing': False}) with idx 95
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
In [57]:
ipy.inline_map(lo.get_map(my_points_time_df_aug_24))
Out[57]:
In [58]:
ipy.inline_map(lo.get_map(pd.DataFrame(my_segment_points_aug_24)))
Out[58]:
In [59]:
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 [60]:
my_trips_list_aug_24 = [make_trip(s1, s2) for s1, s2 in zip(my_segment_points_aug_24, my_segment_points_aug_24[1:])]
--------------------2015-08-24 15:58:19 -> 2015-08-24 16:09:54--------------------
--------------------2015-08-24 16:09:54 -> 2015-08-24 17:01:49--------------------
In [61]:
trip_section_map = []
for trip in my_trips_list_aug_24:
trip_section_map.append((trip, ss.segment_into_sections(trip)))
At 2015-08-24 15:58:46, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 15:58:57, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 15:59:26, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 15:59:56, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:00:15, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:00:57, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:01:27, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:01:57, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:02:27, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:02:57, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:03:27, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:04:14, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:04:57, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:05:27, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:06:22, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:07:22, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:08:19, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:08:29, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-24 16:08:19
At 2015-08-24 16:09:26, retained existing activity Activities.ON_FOOT because of low confidence
Detected trip end! Ending section at 2015-08-24 16:09:54
At 2015-08-24 16:09:57, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:10:52, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:11:12, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:11:27, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:11:57, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:12:27, retained existing activity Activities.STILL because of no change
At 2015-08-24 16:50:03, found new activity Activities.IN_VEHICLE compared to current Activities.STILL - creating new section with start_time 2015-08-24 16:12:27
At 2015-08-24 16:50:17, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:50:47, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:51:34, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:52:18, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:52:48, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:53:35, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:54:18, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:54:48, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:55:18, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:55:48, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:56:48, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:57:18, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:57:48, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 16:58:35, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 16:59:18, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 17:00:05, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 17:01:10, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 17:01:21, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 17:01:25, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 17:01:29, retained existing activity Activities.IN_VEHICLE because of no change
Detected trip end! Ending section at 2015-08-24 17:01:49
In [62]:
section_map_list_24 = lo.get_map_list_after_segmentation(trip_section_map,
cso.BoxplotOutlier(ignore_zeros=True),
cjs.SmoothZigzag())
DEBUG:root:==================== 2015-08-24 15:58:19 -> 2015-08-24 16:09:54 ====================
DEBUG:root:-------------------- 0: 2015-08-24 15:58:19 -> 2015-08-24 16:08:19 --------------------
DEBUG:root:filtering points Int64Index([28, 29], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (41, 28) to (39, 28)
DEBUG:root:quartile values are 0.25 8.918517
0.75 18.617163
Name: speed, dtype: float64
DEBUG:root:iqr 9.69864600043
DEBUG:root:For cluster 0 - 38, distance = 3250.82768034, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 38, 3250.82768034)] 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-24 15:58:19'), 'end_ts': 1440457699760, 'start_ts': 1440457099385, 'end_time': '2015-08-24 16:08:19', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (39, 28), formatted_time.head() = 0 2015-08-24 15:58:24
1 2015-08-24 15:58:30
2 2015-08-24 15:58:35
3 2015-08-24 15:58:41
4 2015-08-24 15:58:46
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 16:08:19 -> 2015-08-24 16:09:54 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (3, 28) to (3, 28)
DEBUG:root:quartile values are 0.25 0.137586
0.75 0.279918
Name: speed, dtype: float64
DEBUG:root:iqr 0.142332587848
DEBUG:root:For cluster 0 - 2, distance = 10.5528956014, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 2, 10.5528956014)] 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, 24, 16, 8, 19), 'end_ts': 1440457794733, 'start_ts': 1440457699760, 'end_time': Timestamp('2015-08-24 16:09:54'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (3, 28), formatted_time.head() = 0 2015-08-24 16:08:24
1 2015-08-24 16:08:54
2 2015-08-24 16:09:24
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-24 16:09:54 -> 2015-08-24 17:01:49 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440457099385}}, {'data.mTime': {'$lt': 1440457794733}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440457794733}}, {'data.mTime': {'$lt': 1440460909591}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-24 16:09:54 -> 2015-08-24 16:12:27 --------------------
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.005351
0.75 0.020192
Name: speed, dtype: float64
DEBUG:root:iqr 0.0148407571621
DEBUG:root:For cluster 0 - 4, distance = 0.79980195943, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 4, 0.79980195943)] 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-24 16:09:54'), 'end_ts': 1440457947471, 'start_ts': 1440457794733, 'end_time': '2015-08-24 16:12:27', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (5, 29), formatted_time.head() = 0 2015-08-24 16:10:24
1 2015-08-24 16:10:54
2 2015-08-24 16:11:24
3 2015-08-24 16:11:54
4 2015-08-24 16:12:24
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 16:12:27 -> 2015-08-24 17:01:49 --------------------
DEBUG:root:filtering points Int64Index([39], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (43, 29) to (42, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 2.619003
0.75 15.414133
Name: speed, dtype: float64
DEBUG:root:iqr 12.7951307213
DEBUG:root:For cluster 0 - 41, distance = 3429.1349887, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 41, 3429.1349887)] 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, 24, 16, 12, 27), 'end_ts': 1440460909591, 'start_ts': 1440457947471, 'end_time': Timestamp('2015-08-24 17:01:49'), 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (42, 29), formatted_time.head() = 0 2015-08-24 16:12:54
1 2015-08-24 16:49:42
2 2015-08-24 16:49:42
3 2015-08-24 16:50:15
4 2015-08-24 16:50:45
Name: formatted_time, dtype: datetime64[ns]
In [63]:
ipy.inline_maps([[map] for map in section_map_list_24], len(section_map_list_24), 1)
Out[63]:
In [64]:
tom_points_time_df_aug_24 = lq.get_plottable_df(tomUUID, "time", get_aug_dt(24), get_aug_dt(25))
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440403200000.0}}, {'data.mTime': {'$lt': 1440489600000.0}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
In [65]:
tom_points_time_df_aug_24[["mLatitude", "mLongitude", "mAccuracy", "formatted_time"]][0:12]
Out[65]:
mLatitude
mLongitude
mAccuracy
formatted_time
0
37.390959
-122.086233
715.144
2015-08-24 08:06:57
1
37.390959
-122.086233
715.144
2015-08-24 08:06:57
2
37.390968
-122.086224
36.000
2015-08-24 08:07:07
3
37.390986
-122.086215
30.000
2015-08-24 08:07:38
4
37.390981
-122.086253
30.000
2015-08-24 08:08:08
5
37.390957
-122.086239
30.000
2015-08-24 08:08:41
6
37.390999
-122.086199
31.500
2015-08-24 08:09:11
7
37.390922
-122.086277
36.000
2015-08-24 08:09:42
8
37.390972
-122.086260
37.500
2015-08-24 08:10:13
9
37.390954
-122.086278
40.500
2015-08-24 08:10:44
10
37.390960
-122.086243
43.500
2015-08-24 08:11:16
11
37.390990
-122.086217
30.000
2015-08-24 08:11:46
In [66]:
tom_segment_points_aug_24 = ts.segment_into_trips(tom_points_time_df_aug_24)
DEBUG:root:filtering points Int64Index([0, 1, 62, 63, 123, 135, 152, 205, 206, 231, 232, 239, 263, 279, 299, 311], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (321, 29) to (305, 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
------------------------------2015-08-24 08:07:38------------------------------
Appending currPoint because the current start point is None
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.06856450654200345, 'formatted_time': Timestamp('2015-08-24 08:07:38'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440428858896, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 30.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.390986, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 2.143326474503028, u'read_ts': 0, u'mElapsedRealtimeNanos': 209062660000000, u'mResults': [0, 0], 'idx': 0, u'mBearing': 0, u'mLongitude': -122.0862147, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440428858486, u'mHasBearing': False}) with idx 0
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-24 08:08:08------------------------------
last5MinsDistances = [ 3.46939129] with length 1
last10PointsDistances = [ 3.46939129 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 08:08:41------------------------------
last5MinsDistances = [ 3.86033651 2.90245094] with length 2
last10PointsDistances = [ 3.86033651 2.90245094 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 08:09:11------------------------------
last5MinsDistances = [ 2.05991521 5.26898306 5.90092327] with length 3
last10PointsDistances = [ 2.05991521 5.26898306 5.90092327 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 08:09:42------------------------------
last5MinsDistances = [ 9.03174757 6.89443456 5.18470092 11.08208857] with length 4
last10PointsDistances = [ 9.03174757 6.89443456 5.18470092 11.08208857 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 08:10:13------------------------------
last5MinsDistances = [ 4.35152784 1.19051885 2.47754117 6.28180488 5.74766674] with length 5
last10PointsDistances = [ 4.35152784 1.19051885 2.47754117 6.28180488 5.74766674 0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 08:10:44------------------------------
last5MinsDistances = [ 6.64349263 3.71407542 3.4436374 8.66064473 3.54782221 2.52717437] with length 6
last10PointsDistances = [ 6.64349263 3.71407542 3.4436374 8.66064473 3.54782221 2.52717437
0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 08:11:16------------------------------
last5MinsDistances = [ 3.85958727 2.47270238 0.49116121 5.91829633 5.18615228 1.98700172
3.1126947 ] with length 7
last10PointsDistances = [ 3.85958727 2.47270238 0.49116121 5.91829633 5.18615228 1.98700172
3.1126947 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-24 08:11:46------------------------------
last5MinsDistances = [ 0.51289652 3.37644102 4.15238745 1.92814706 9.28386428 4.35644444
6.73873543 4.09771578] with length 8
last10PointsDistances = [ 0.51289652 3.37644102 4.15238745 1.92814706 9.28386428 4.35644444
6.73873543 4.09771578 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 9.28386428198, last10PointsDistance.max() = 9.28386428198
last5MinPoints.median = 3.5 (Int64Index([0, 1, 2, 3, 4, 5, 6, 7], dtype='int64')), last10Points_df = 4.0 (Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 8], dtype='int64')), sel index = 3
Appending last_trip_end_point filter time
formatted_time 2015-08-24 08:09:11
key background/location
mAccuracy 31.5
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 209155328000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.391
mLon1 0
mLon2 0
mLongitude -122.0862
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440428951154
platform android
read_ts 0
type message
write_ts 1440428951618
distance 5.900923
speed 0.1958878
Name: 3, dtype: object with index 3
Found trip end at 2015-08-24 08:09:11
------------------------------2015-08-24 08:12:19------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.08091823946466255, 'formatted_time': Timestamp('2015-08-24 08:12:19'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440429139494, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 30.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.3909838, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 2.6249876882336527, u'read_ts': 0, u'mElapsedRealtimeNanos': 209343465000000, u'mResults': [0, 0], 'idx': 9, u'mBearing': 0, u'mLongitude': -122.0861885, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440429139292, u'mHasBearing': False}) with idx 9
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-24 08:17:10------------------------------
last5MinsDistances = [ 139.26245513] with length 1
last10PointsDistances = [ 139.26245513 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 08:17:36------------------------------
last5MinsDistances = [ 92.63608625] with length 1
last10PointsDistances = [ 231.38218778 92.63608625 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 08:17:51------------------------------
last5MinsDistances = [ 104.01149317 12.42245868] with length 2
last10PointsDistances = [ 243.05676637 104.01149317 12.42245868 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 08:18:21------------------------------
last5MinsDistances = [ 117.34655917 26.33021129 13.92741269] with length 3
last10PointsDistances = [ 256.53243345 117.34655917 26.33021129 13.92741269 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 08:18:53------------------------------
last5MinsDistances = [ 311.91608564 220.06427571 208.17041897 194.61512787] with length 4
last10PointsDistances = [ 451.14339134 311.91608564 220.06427571 208.17041897 194.61512787
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 08:19:24------------------------------
last5MinsDistances = [ 433.80692371 341.78583738 329.97620808 316.47856478 121.91785421] with length 5
last10PointsDistances = [ 573.00845224 433.80692371 341.78583738 329.97620808 316.47856478
121.91785421 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 08:19:57------------------------------
last5MinsDistances = [ 428.80698495 336.6111286 324.88207985 311.46048551 117.19000953
8.48789133] with length 6
last10PointsDistances = [ 567.93856347 428.80698495 336.6111286 324.88207985 311.46048551
117.19000953 8.48789133 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 08:20:28------------------------------
last5MinsDistances = [ 445.4757633 353.40012656 341.61482359 328.1383915 133.62585429
11.82120449 17.42268801] with length 7
last10PointsDistances = [ 584.66039733 445.4757633 353.40012656 341.61482359 328.1383915
133.62585429 11.82120449 17.42268801 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 445.475763297, last10PointsDistance.max() = 584.660397328
------------------------------2015-08-24 08:20:58------------------------------
last5MinsDistances = [ 488.59030686 396.26592417 384.61382713 371.25751961 177.21307254
56.32174153 60.05626709 44.55577882] with length 8
last10PointsDistances = [ 488.59030686 396.26592417 384.61382713 371.25751961 177.21307254
56.32174153 60.05626709 44.55577882 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 488.590306855, last10PointsDistance.max() = 488.590306855
------------------------------2015-08-24 08:21:30------------------------------
last5MinsDistances = [ 785.81102161 715.06331233 703.21615258 690.33106097 545.69082673
477.73385826 486.14993795 473.88208177 466.57327441] with length 9
last10PointsDistances = [ 715.06331233 703.21615258 690.33106097 545.69082673 477.73385826
486.14993795 473.88208177 466.57327441 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 785.81102161, last10PointsDistance.max() = 715.063312329
------------------------------2015-08-24 08:22:01------------------------------
last5MinsDistances = [ 784.03355759 713.60059584 701.77469491 688.92022687 545.16155469
478.049339 486.45540547 474.29714101 467.38150965 4.25030408] with length 10
last10PointsDistances = [ 701.77469491 688.92022687 545.16155469 478.049339 486.45540547
474.29714101 467.38150965 4.25030408 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 784.033557591, last10PointsDistance.max() = 701.774694907
------------------------------2015-08-24 08:22:32------------------------------
last5MinsDistances = [ 791.31815628 779.49859473 765.97041465 571.35604097 449.53245582
454.81455216 437.92826374 395.62916291 460.50459291 464.23451371] with length 10
last10PointsDistances = [ 765.97041465 571.35604097 449.53245582 454.81455216 437.92826374
395.62916291 460.50459291 464.23451371 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 791.318156278, last10PointsDistance.max() = 765.970414649
------------------------------2015-08-24 08:23:03------------------------------
last5MinsDistances = [ 861.86662194 667.41997699 545.50841784 550.40614093 533.79520507
490.69526892 535.08484632 539.05212295 99.84349116] with length 9
last10PointsDistances = [ 667.41997699 545.50841784 550.40614093 533.79520507 490.69526892
535.08484632 539.05212295 99.84349116 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 861.866621936, last10PointsDistance.max() = 667.419976985
------------------------------2015-08-24 08:23:34------------------------------
last5MinsDistances = [ 664.77299088 542.86062089 547.76369117 531.14862253 488.05848715
533.15447573 537.11645376 97.17903929 2.67858808] with length 9
last10PointsDistances = [ 542.86062089 547.76369117 531.14862253 488.05848715 533.15447573
537.11645376 97.17903929 2.67858808 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 664.77299088, last10PointsDistance.max() = 547.763691167
------------------------------2015-08-24 08:24:05------------------------------
last5MinsDistances = [ 559.93434235 564.84680868 548.22480564 505.14828216 542.98882968
546.98928407 113.59107477 14.48185323 17.09527326] with length 9
last10PointsDistances = [ 564.84680868 548.22480564 505.14828216 542.98882968 546.98928407
113.59107477 14.48185323 17.09527326 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 564.846808678, last10PointsDistance.max() = 564.846808678
------------------------------2015-08-24 08:24:37------------------------------
last5MinsDistances = [ 494.30277566 479.05514568 434.545015 582.89319341 586.50356888
125.72636713 115.92335017 114.81803222 125.49783237] with length 9
last10PointsDistances = [ 479.05514568 434.545015 582.89319341 586.50356888 125.72636713
115.92335017 114.81803222 125.49783237 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 586.503568882, last10PointsDistance.max() = 586.503568882
------------------------------2015-08-24 08:25:08------------------------------
last5MinsDistances = [ 498.06779333 455.30440325 707.90966825 711.16891943 271.60289691
266.17486541 265.56546157 273.10047403 154.3501148 ] with length 9
last10PointsDistances = [ 455.30440325 707.90966825 711.16891943 271.60289691 266.17486541
265.56546157 273.10047403 154.3501148 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 711.168919434, last10PointsDistance.max() = 711.168919434
------------------------------2015-08-24 08:25:39------------------------------
last5MinsDistances = [ 521.01008342 826.17883008 829.24436137 400.28140867 392.47036715
392.08008175 398.20253934 283.16473505 129.23486578] with length 9
last10PointsDistances = [ 826.17883008 829.24436137 400.28140867 392.47036715 392.08008175
398.20253934 283.16473505 129.23486578 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 829.24436137, last10PointsDistance.max() = 829.24436137
------------------------------2015-08-24 08:26:10------------------------------
last5MinsDistances = [ 902.75579405 906.07573866 456.15895375 424.82053322 425.11778939
426.97373371 331.11098461 195.71241209 109.79804767] with length 9
last10PointsDistances = [ 906.07573866 456.15895375 424.82053322 425.11778939 426.97373371
331.11098461 195.71241209 109.79804767 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 906.075738655, last10PointsDistance.max() = 906.075738655
------------------------------2015-08-24 08:26:42------------------------------
last5MinsDistances = [ 999.08957814 539.02680005 490.04211555 490.9030571 489.03764386
413.84827651 299.72229125 227.97105115 118.23535906] with length 9
last10PointsDistances = [ 539.02680005 490.04211555 490.9030571 489.03764386 413.84827651
299.72229125 227.97105115 118.23535906 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 999.089578135, last10PointsDistance.max() = 539.026800053
------------------------------2015-08-24 08:27:12------------------------------
last5MinsDistances = [ 546.13445645 488.24068294 489.3781263 485.63369593 423.08101105
324.93544101 270.27004854 161.67602469 54.51508948] with length 9
last10PointsDistances = [ 488.24068294 489.3781263 485.63369593 423.08101105 324.93544101
270.27004854 161.67602469 54.51508948 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 546.134456449, last10PointsDistance.max() = 489.378126299
------------------------------2015-08-24 08:27:43------------------------------
last5MinsDistances = [ 518.59469518 519.84934223 515.27749717 457.86915266 363.54685241
308.55762533 199.3922352 85.74708634 39.14013487] with length 9
last10PointsDistances = [ 519.84934223 515.27749717 457.86915266 363.54685241 308.55762533
199.3922352 85.74708634 39.14013487 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 519.849342226, last10PointsDistance.max() = 519.849342226
------------------------------2015-08-24 08:28:14------------------------------
last5MinsDistances = [ 533.48805321 528.03675441 476.7589269 388.87821682 338.4795869
229.7144314 116.88615612 68.21096365 31.13920501] with length 9
last10PointsDistances = [ 528.03675441 476.7589269 388.87821682 338.4795869 229.7144314
116.88615612 68.21096365 31.13920501 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 533.488053208, last10PointsDistance.max() = 528.036754406
------------------------------2015-08-24 08:28:45------------------------------
last5MinsDistances = [ 498.99794546 461.43111582 392.55794981 362.05017414 258.12560128
159.17787447 104.67702543 82.76165177 61.53267451] with length 9
last10PointsDistances = [ 461.43111582 392.55794981 362.05017414 258.12560128 159.17787447
104.67702543 82.76165177 61.53267451 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 498.997945462, last10PointsDistance.max() = 461.431115818
------------------------------2015-08-24 08:29:16------------------------------
last5MinsDistances = [ 465.91920624 394.48894203 361.13647347 256.26786481 154.82583396
100.49197302 76.24965225 53.56515543 8.58451123] with length 9
last10PointsDistances = [ 394.48894203 361.13647347 256.26786481 154.82583396 100.49197302
76.24965225 53.56515543 8.58451123 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 465.919206241, last10PointsDistance.max() = 394.488942026
------------------------------2015-08-24 08:29:47------------------------------
last5MinsDistances = [ 391.96171325 363.39182892 260.12881895 162.81860895 108.30736609
87.72295127 67.19161971 5.8222699 14.38719494] with length 9
last10PointsDistances = [ 363.39182892 260.12881895 162.81860895 108.30736609 87.72295127
67.19161971 5.8222699 14.38719494 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 391.961713248, last10PointsDistance.max() = 363.39182892
------------------------------2015-08-24 08:30:18------------------------------
last5MinsDistances = [ 313.88416602 208.78862725 110.77749578 56.52367004 47.45223688
47.56380268 49.80270839 47.48543601 52.66474795] with length 9
last10PointsDistances = [ 208.78862725 110.77749578 56.52367004 47.45223688 47.56380268
49.80270839 47.48543601 52.66474795 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 313.884166021, last10PointsDistance.max() = 208.788627247
------------------------------2015-08-24 08:30:49------------------------------
last5MinsDistances = [ 219.0731563 107.46753366 57.4138793 22.37201194 11.36522891
62.73300082 55.52936523 68.06750825 39.29322298] with length 9
last10PointsDistances = [ 107.46753366 57.4138793 22.37201194 11.36522891 62.73300082
55.52936523 68.06750825 39.29322298 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 219.073156303, last10PointsDistance.max() = 107.467533661
------------------------------2015-08-24 08:31:20------------------------------
last5MinsDistances = [ 65.58673218 11.18631466 31.26699759 58.43517983 93.59487764
89.32538926 97.30463074 45.93398761 47.36229758] with length 9
last10PointsDistances = [ 11.18631466 31.26699759 58.43517983 93.59487764 89.32538926
97.30463074 45.93398761 47.36229758 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 97.3046307384, last10PointsDistance.max() = 97.3046307384
last5MinPoints.median = 33.0 (Int64Index([29, 30, 31, 32, 33, 34, 35, 36, 37], dtype='int64')), last10Points_df = 34.0 (Int64Index([30, 31, 32, 33, 34, 35, 36, 37, 38], dtype='int64')), sel index = 33
Appending last_trip_end_point filter time
formatted_time 2015-08-24 08:28:45
key background/location
mAccuracy 93.616
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 210330076000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.40365
mLon1 0
mLon2 0
mLongitude -122.084
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440430125903
platform android
read_ts 0
type message
write_ts 1440430126323
distance 61.53267
speed 1.965272
Name: 33, dtype: object with index 33
Found trip end at 2015-08-24 08:28:45
------------------------------2015-08-24 08:31:50------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 4.174127579933798, 'formatted_time': Timestamp('2015-08-24 08:31:50'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440430311111, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 112.973, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.4028433, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 125.29478756687281, u'read_ts': 0, u'mElapsedRealtimeNanos': 210515030000000, u'mResults': [0, 0], 'idx': 39, u'mBearing': 0, u'mLongitude': -122.083262, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440430310857, u'mHasBearing': False}) with idx 39
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-24 08:33:27------------------------------
last5MinsDistances = [ 423.17845233] with length 1
last10PointsDistances = [ 423.17845233 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 08:34:04------------------------------
last5MinsDistances = [ 582.72040634 202.3742903 ] with length 2
last10PointsDistances = [ 582.72040634 202.3742903 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 08:34:35------------------------------
last5MinsDistances = [ 634.00917037 307.8966672 123.59995286] with length 3
last10PointsDistances = [ 634.00917037 307.8966672 123.59995286 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 08:35:06------------------------------
last5MinsDistances = [ 745.51283952 417.65699141 220.43641421 114.96086709] with length 4
last10PointsDistances = [ 745.51283952 417.65699141 220.43641421 114.96086709 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 08:35:37------------------------------
last5MinsDistances = [ 919.72428687 665.24657299 481.42476252 360.44390652 268.93657655] with length 5
last10PointsDistances = [ 919.72428687 665.24657299 481.42476252 360.44390652 268.93657655
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 08:36:08------------------------------
last5MinsDistances = [ 924.59896421 671.37233785 487.72296275 366.68943757 275.26351525
6.33579528] with length 6
last10PointsDistances = [ 924.59896421 671.37233785 487.72296275 366.68943757 275.26351525
6.33579528 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 08:36:39------------------------------
last5MinsDistances = [ 855.50931214 545.63526429 348.83279936 239.53207528 128.48886593
159.58385735 165.48299821] with length 7
last10PointsDistances = [ 855.50931214 545.63526429 348.83279936 239.53207528 128.48886593
159.58385735 165.48299821 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-24 08:37:10------------------------------
last5MinsDistances = [ 691.973585 507.52069926 386.87164542 293.79149141 26.8365478
21.00202203 180.43633465] with length 7
last10PointsDistances = [ 945.03620084 691.973585 507.52069926 386.87164542 293.79149141
26.8365478 21.00202203 180.43633465 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 691.973584996, last10PointsDistance.max() = 945.036200837
------------------------------2015-08-24 08:37:44------------------------------
last5MinsDistances = [ 676.46818168 492.38119023 371.53870907 279.34559827 11.26354081
5.72392765 168.1659004 15.57326359] with length 8
last10PointsDistances = [ 676.46818168 492.38119023 371.53870907 279.34559827 11.26354081
5.72392765 168.1659004 15.57326359 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 676.468181679, last10PointsDistance.max() = 676.468181679
------------------------------2015-08-24 08:38:14------------------------------
last5MinsDistances = [ 670.12927907 485.79793089 365.0416365 272.6568584 5.77856711
4.88906313 161.73215942 21.85619671 6.69098574] with length 9
last10PointsDistances = [ 485.79793089 365.0416365 272.6568584 5.77856711 4.88906313
161.73215942 21.85619671 6.69098574 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 670.129279068, last10PointsDistance.max() = 485.797930888
------------------------------2015-08-24 08:38:46------------------------------
last5MinsDistances = [ 504.9574613 384.17844932 291.57125354 23.88093567 17.88929189
178.97768527 3.40430843 12.65776349 19.16071875] with length 9
last10PointsDistances = [ 384.17844932 291.57125354 23.88093567 17.88929189 178.97768527
3.40430843 12.65776349 19.16071875 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 504.9574613, last10PointsDistance.max() = 384.178449319
------------------------------2015-08-24 08:39:18------------------------------
last5MinsDistances = [ 376.04247374 283.9072146 15.64551301 9.63408173 172.47039488
11.38428773 4.56649808 11.25040697 8.2635387 ] with length 9
last10PointsDistances = [ 283.9072146 15.64551301 9.63408173 172.47039488 11.38428773
4.56649808 11.25040697 8.2635387 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 376.04247374, last10PointsDistance.max() = 283.907214604
------------------------------2015-08-24 08:39:49------------------------------
last5MinsDistances = [ 297.96980129 63.15740579 60.79333381 174.46658086 48.19427367
55.85117116 57.69172105 50.82534046 54.70392925] with length 9
last10PointsDistances = [ 63.15740579 60.79333381 174.46658086 48.19427367 55.85117116
57.69172105 50.82534046 54.70392925 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 297.969801285, last10PointsDistance.max() = 174.466580863
------------------------------2015-08-24 08:40:22------------------------------
last5MinsDistances = [ 24.42751331 19.62078822 173.98338346 7.26976168 13.92099107
18.80788022 8.08234387 11.35946196 43.69867288] with length 9
last10PointsDistances = [ 19.62078822 173.98338346 7.26976168 13.92099107 18.80788022
8.08234387 11.35946196 43.69867288 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 173.983383455, last10PointsDistance.max() = 173.983383455
------------------------------2015-08-24 08:40:54------------------------------
last5MinsDistances = [ 7.90399295 167.36354384 14.74383555 2.77320361 7.16890642
12.2287569 5.23859956 53.16879925 11.92454446] with length 9
last10PointsDistances = [ 167.36354384 14.74383555 2.77320361 7.16890642 12.2287569
5.23859956 53.16879925 11.92454446 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 167.363543844, last10PointsDistance.max() = 167.363543844
------------------------------2015-08-24 08:41:27------------------------------
last5MinsDistances = [ 173.73315992 7.59533966 8.15769546 14.26680205 5.27213954
4.6633414 50.40936556 6.79666532 7.1510616 ] with length 9
last10PointsDistances = [ 7.59533966 8.15769546 14.26680205 5.27213954 4.6633414
50.40936556 6.79666532 7.1510616 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 173.733159918, last10PointsDistance.max() = 50.4093655611
------------------------------2015-08-24 08:41:58------------------------------
last5MinsDistances = [ 198.04146943 211.9197108 216.28131871 201.44573049 208.76540142
164.30305584 198.00616754 209.85551589 204.16108158] with length 9
last10PointsDistances = [ 211.9197108 216.28131871 201.44573049 208.76540142 164.30305584
198.00616754 209.85551589 204.16108158 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 216.281318708, last10PointsDistance.max() = 216.281318708
------------------------------2015-08-24 08:43:30------------------------------
last5MinsDistances = [ 11.94863085 4.51280592 53.97835766 12.31024486 0.99862759
7.04923582 210.30730602] with length 7
last10PointsDistances = [ 7.23764546 11.94863085 4.51280592 53.97835766 12.31024486
0.99862759 7.04923582 210.30730602 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 210.307306024, last10PointsDistance.max() = 210.307306024
------------------------------2015-08-24 08:44:02------------------------------
last5MinsDistances = [ 4.80476457 52.79476348 11.29837708 0.68521443 6.4716412
209.25961727 1.1836015 ] with length 7
last10PointsDistances = [ 11.57090561 4.80476457 52.79476348 11.29837708 0.68521443
6.4716412 209.25961727 1.1836015 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 209.259617265, last10PointsDistance.max() = 209.259617265
------------------------------2015-08-24 08:44:32------------------------------
last5MinsDistances = [ 138.65498618 171.67868844 183.54070102 177.80889758 26.38867055
183.98379821 182.94146512] with length 7
last10PointsDistances = [ 182.40798429 138.65498618 171.67868844 183.54070102 177.80889758
26.38867055 183.98379821 182.94146512 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 183.983798215, last10PointsDistance.max() = 183.983798215
------------------------------2015-08-24 08:45:03------------------------------
last5MinsDistances = [ 197.46057423 209.30641691 203.62312525 0.76029417 209.76044276
208.71137086 25.88308742] with length 7
last10PointsDistances = [ 163.6825374 197.46057423 209.30641691 203.62312525 0.76029417
209.76044276 208.71137086 25.88308742 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 209.760442757, last10PointsDistance.max() = 209.760442757
------------------------------2015-08-24 08:45:34------------------------------
last5MinsDistances = [ 3.66197799 10.68563068 211.96477188 4.23000562 4.28969857
185.68277532 211.40824842] with length 7
last10PointsDistances = [ 14.59169904 3.66197799 10.68563068 211.96477188 4.23000562
4.28969857 185.68277532 211.40824842 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 211.964771877, last10PointsDistance.max() = 211.964771877
------------------------------2015-08-24 08:46:05------------------------------
last5MinsDistances = [ 204.19338319 0.33379582 210.34512918 209.29831211 26.40646862
1.03948078 212.00869881] with length 7
last10PointsDistances = [ 209.89474506 204.19338319 0.33379582 210.34512918 209.29831211
26.40646862 1.03948078 212.00869881 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 212.008698812, last10PointsDistance.max() = 212.008698812
------------------------------2015-08-24 08:46:37------------------------------
last5MinsDistances = [ 201.45879073 8.90292989 7.9474095 175.12651966 200.91448849
11.54875659 201.49504155] with length 7
last10PointsDistances = [ 3.62095728 201.45879073 8.90292989 7.9474095 175.12651966
200.91448849 11.54875659 201.49504155 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 201.495041553, last10PointsDistance.max() = 201.495041553
------------------------------2015-08-24 08:47:08------------------------------
last5MinsDistances = [ 1.36770935 1.80872984 184.63386858 210.39564014 2.87032501
210.98526008 9.731372 ] with length 7
last10PointsDistances = [ 210.94553382 1.36770935 1.80872984 184.63386858 210.39564014
2.87032501 210.98526008 9.731372 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 210.985260083, last10PointsDistance.max() = 210.985260083
------------------------------2015-08-24 08:47:40------------------------------
last5MinsDistances = [ 8.72156908 8.04486932 176.03147384 201.84771419 12.15361833
202.41707926 2.76563577 9.83378626] with length 8
last10PointsDistances = [ 8.72156908 8.04486932 176.03147384 201.84771419 12.15361833
202.41707926 2.76563577 9.83378626 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 202.417079263, last10PointsDistance.max() = 202.417079263
------------------------------2015-08-24 08:48:11------------------------------
last5MinsDistances = [ 16.14719511 15.33756961 168.6169439 194.44704617 19.15081567
195.00992372 7.62790487 17.14618024 7.54969348] with length 9
last10PointsDistances = [ 15.33756961 168.6169439 194.44704617 19.15081567 195.00992372
7.62790487 17.14618024 7.54969348 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 195.009923725, last10PointsDistance.max() = 195.009923725
------------------------------2015-08-24 08:48:42------------------------------
last5MinsDistances = [ 20.68094978 163.09842098 188.93256209 24.3061674 189.49336129
12.78614353 22.48247678 13.06136653 5.53436874] with length 9
last10PointsDistances = [ 163.09842098 188.93256209 24.3061674 189.49336129 12.78614353
22.48247678 13.06136653 5.53436874 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 189.493361289, last10PointsDistance.max() = 189.493361289
------------------------------2015-08-24 08:49:13------------------------------
last5MinsDistances = [ 184.33714629 210.1098523 3.79733017 210.69588159 9.29087724
0.92753447 9.17694406 16.58162446 21.97110318] with length 9
last10PointsDistances = [ 210.1098523 3.79733017 210.69588159 9.29087724 0.92753447
9.17694406 16.58162446 21.97110318 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 210.695881591, last10PointsDistance.max() = 210.695881591
------------------------------2015-08-24 08:49:43------------------------------
last5MinsDistances = [ 1.22765257 212.61883486 0.8890674 202.1199929 211.60353923
203.05012566 195.64756946 190.1324611 211.31682305] with length 9
last10PointsDistances = [ 212.61883486 0.8890674 202.1199929 211.60353923 203.05012566
195.64756946 190.1324611 211.31682305 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 212.618834855, last10PointsDistance.max() = 212.618834855
------------------------------2015-08-24 08:50:13------------------------------
last5MinsDistances = [ 299.7727649 159.22083066 293.19084299 300.2500793 295.3199439
289.71852679 285.24640383 300.44538798 158.42499097] with length 9
last10PointsDistances = [ 159.22083066 293.19084299 300.2500793 295.3199439 289.71852679
285.24640383 300.44538798 158.42499097 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 300.445387983, last10PointsDistance.max() = 300.445387983
------------------------------2015-08-24 08:50:44------------------------------
last5MinsDistances = [ 534.70726475 721.17597899 729.43881429 722.88614467 716.31711915
711.22014258 729.45396394 533.86861454 438.74841175] with length 9
last10PointsDistances = [ 721.17597899 729.43881429 722.88614467 716.31711915 711.22014258
729.45396394 533.86861454 438.74841175 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 729.453963942, last10PointsDistance.max() = 729.453963942
------------------------------2015-08-24 08:51:15------------------------------
last5MinsDistances = [ 1287.72947864 1295.46006189 1289.63661924 1283.43991797 1278.56057372
1295.56515902 1106.59405019 997.06255114 573.89509386] with length 9
last10PointsDistances = [ 1295.46006189 1289.63661924 1283.43991797 1278.56057372 1295.56515902
1106.59405019 997.06255114 573.89509386 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1295.56515902, last10PointsDistance.max() = 1295.56515902
------------------------------2015-08-24 08:51:47------------------------------
last5MinsDistances = [ 2052.185143 2046.52899479 2040.41648575 2035.58577168 2052.31041498
1864.08341413 1752.93397138 1330.79950845 757.57885712] with length 9
last10PointsDistances = [ 2046.52899479 2040.41648575 2035.58577168 2052.31041498 1864.08341413
1752.93397138 1330.79950845 757.57885712 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 2052.31041498, last10PointsDistance.max() = 2052.31041498
------------------------------2015-08-24 08:52:18------------------------------
last5MinsDistances = [ 2987.99186809 2981.98020731 2977.20979959 2993.60597775 2807.00410292
2693.65067331 2273.9082462 1700.41060358 943.13965313] with length 9
last10PointsDistances = [ 2981.98020731 2977.20979959 2993.60597775 2807.00410292 2693.65067331
2273.9082462 1700.41060358 943.13965313 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 2993.60597775, last10PointsDistance.max() = 2993.60597775
------------------------------2015-08-24 08:52:47------------------------------
last5MinsDistances = [ 3866.19491423 3861.42700625 3877.80355451 3690.99987738 3577.80323977
3157.6875346 2584.42909136 1826.93000349 884.22119193] with length 9
last10PointsDistances = [ 3861.42700625 3877.80355451 3690.99987738 3577.80323977 3157.6875346
2584.42909136 1826.93000349 884.22119193 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 3877.80355451, last10PointsDistance.max() = 3877.80355451
------------------------------2015-08-24 08:53:18------------------------------
last5MinsDistances = [ 4986.30175922 5002.58850038 4816.14838114 4702.47772853 4282.83225807
3709.57051754 2952.0821395 2009.24691846 1125.15214613] with length 9
last10PointsDistances = [ 5002.58850038 4816.14838114 4702.47772853 4282.83225807 3709.57051754
2952.0821395 2009.24691846 1125.15214613 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 5002.58850038, last10PointsDistance.max() = 5002.58850038
------------------------------2015-08-24 08:53:50------------------------------
last5MinsDistances = [ 6137.35613557 5949.76149952 5837.39622059 5416.14034366 4843.4025946
4085.82751204 3143.75481852 2259.60515602 1136.03601124] with length 9
last10PointsDistances = [ 5949.76149952 5837.39622059 5416.14034366 4843.4025946 4085.82751204
3143.75481852 2259.60515602 1136.03601124 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 6137.35613557, last10PointsDistance.max() = 5949.76149952
------------------------------2015-08-24 08:54:33------------------------------
last5MinsDistances = [ 7422.60618591 7303.47547225 6891.02792579 6317.13836573 5561.59928951
4619.36566278 3739.72176876 2621.15850441 1526.23421383] with length 9
last10PointsDistances = [ 7303.47547225 6891.02792579 6317.13836573 5561.59928951 4619.36566278
3739.72176876 2621.15850441 1526.23421383 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 7422.60618591, last10PointsDistance.max() = 7303.47547225
------------------------------2015-08-24 08:55:04------------------------------
last5MinsDistances = [ 8323.5022479 7917.78621179 7344.55798254 6592.49205493 5653.72233881
4780.86377898 3672.64856598 2596.9456888 1073.08657245] with length 9
last10PointsDistances = [ 7917.78621179 7344.55798254 6592.49205493 5653.72233881 4780.86377898
3672.64856598 2596.9456888 1073.08657245 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 8323.5022479, last10PointsDistance.max() = 7917.78621179
------------------------------2015-08-24 08:55:35------------------------------
last5MinsDistances = [ 8921.2938902 8348.94089399 7599.51837946 6663.57496353 5794.99343727
4692.23350115 3621.32734912 2096.56545802 1024.40868875] with length 9
last10PointsDistances = [ 8348.94089399 7599.51837946 6663.57496353 5794.99343727 4692.23350115
3621.32734912 2096.56545802 1024.40868875 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 8921.2938902, last10PointsDistance.max() = 8348.94089399
------------------------------2015-08-24 08:56:06------------------------------
last5MinsDistances = [ 9437.66679566 8685.71393499 7746.74708481 6872.72254079 5760.50716177
4665.1042993 3142.5488101 2093.22314643 1107.8881828 ] with length 9
last10PointsDistances = [ 8685.71393499 7746.74708481 6872.72254079 5760.50716177 4665.1042993
3142.5488101 2093.22314643 1107.8881828 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 9437.66679566, last10PointsDistance.max() = 8685.71393499
------------------------------2015-08-24 08:57:11------------------------------
last5MinsDistances = [ 9968.67074699 9088.85065929 7968.00712785 6850.67770877 5349.36520965
4332.68538467 3369.09415932 2261.30446526] with length 8
last10PointsDistances = [ 9968.67074699 9088.85065929 7968.00712785 6850.67770877 5349.36520965
4332.68538467 3369.09415932 2261.30446526 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 9968.67074699, last10PointsDistance.max() = 9968.67074699
------------------------------2015-08-24 08:58:21------------------------------
last5MinsDistances = [ 8994.86506108 7521.10092624 6534.42060475 5594.07305187 4488.5953542
2234.78125095] with length 6
last10PointsDistances = [ 11248.88677987 10124.13351689 8994.86506108 7521.10092624
6534.42060475 5594.07305187 4488.5953542 2234.78125095 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 8994.86506108, last10PointsDistance.max() = 11248.8867799
------------------------------2015-08-24 08:58:52------------------------------
last5MinsDistances = [ 7943.96374154 6958.90865453 6018.6544769 4912.96783695 2657.65588267
424.76145869] with length 6
last10PointsDistances = [ 10545.32205586 9415.3421908 7943.96374154 6958.90865453
6018.6544769 4912.96783695 2657.65588267 424.76145869 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 7943.96374154, last10PointsDistance.max() = 10545.3220559
------------------------------2015-08-24 08:59:24------------------------------
last5MinsDistances = [ 8368.21513709 7374.54898644 6423.55915423 5316.11506383 3055.24445085
853.20963795 448.97785948] with length 7
last10PointsDistances = [ 9845.70801341 8368.21513709 7374.54898644 6423.55915423 5316.11506383
3055.24445085 853.20963795 448.97785948 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 8368.21513709, last10PointsDistance.max() = 9845.70801341
------------------------------2015-08-24 08:59:57------------------------------
last5MinsDistances = [ 7853.26013445 6915.34423694 5809.74770299 3553.81935689 1321.27144604
896.78236409 539.26447606] with length 7
last10PointsDistances = [ 8833.35673422 7853.26013445 6915.34423694 5809.74770299 3553.81935689
1321.27144604 896.78236409 539.26447606 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 7853.26013445, last10PointsDistance.max() = 8833.35673422
------------------------------2015-08-24 09:00:27------------------------------
last5MinsDistances = [ 7055.78613364 5953.08199765 3706.21715135 1473.63602221 1057.77040631
761.68862473 251.74777568] with length 7
last10PointsDistances = [ 7981.52656039 7055.78613364 5953.08199765 3706.21715135 1473.63602221
1057.77040631 761.68862473 251.74777568 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 7055.78613364, last10PointsDistance.max() = 7981.52656039
------------------------------2015-08-24 09:00:59------------------------------
last5MinsDistances = [ 6207.29713907 3956.82374727 1722.1776183 1301.43226523 962.4017558
423.26316661 262.8628481 ] with length 7
last10PointsDistances = [ 7310.9997109 6207.29713907 3956.82374727 1722.1776183 1301.43226523
962.4017558 423.26316661 262.8628481 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 6207.29713907, last10PointsDistance.max() = 7310.9997109
------------------------------2015-08-24 09:01:31------------------------------
last5MinsDistances = [ 4329.68474166 2097.13781071 1679.78100477 1347.88714599 808.92782384
623.59473962 385.71688035] with length 7
last10PointsDistances = [ 6575.04064182 4329.68474166 2097.13781071 1679.78100477 1347.88714599
808.92782384 623.59473962 385.71688035 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 4329.68474166, last10PointsDistance.max() = 6575.04064182
------------------------------2015-08-24 09:02:02------------------------------
last5MinsDistances = [ 4265.57804172 2039.93315055 1629.69844161 1328.83648873 792.8102875
575.93515205 383.11509879 149.22779628] with length 8
last10PointsDistances = [ 4265.57804172 2039.93315055 1629.69844161 1328.83648873 792.8102875
575.93515205 383.11509879 149.22779628 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4265.57804172, last10PointsDistance.max() = 4265.57804172
------------------------------2015-08-24 09:02:32------------------------------
last5MinsDistances = [ 2059.2336546 1650.97757346 1356.60554891 822.13603226 600.52078787
416.61246349 175.57072442 37.81754689] with length 8
last10PointsDistances = [ 2059.2336546 1650.97757346 1356.60554891 822.13603226 600.52078787
416.61246349 175.57072442 37.81754689 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2059.2336546, last10PointsDistance.max() = 2059.2336546
------------------------------2015-08-24 09:03:03------------------------------
last5MinsDistances = [ 2050.11488957 1639.01560309 1334.6009155 797.68753232 583.94169857
384.88029701 132.34359972 17.53162451 47.81891161] with length 9
last10PointsDistances = [ 1639.01560309 1334.6009155 797.68753232 583.94169857 384.88029701
132.34359972 17.53162451 47.81891161 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 2050.11488957, last10PointsDistance.max() = 1639.01560309
------------------------------2015-08-24 09:04:38------------------------------
last5MinsDistances = [ 911.581735 673.06434376 532.11891756 318.44221713 185.19952248
149.00573861 196.82232158] with length 7
last10PointsDistances = [ 1434.66396264 911.581735 673.06434376 532.11891756 318.44221713
185.19952248 149.00573861 196.82232158 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 911.581734996, last10PointsDistance.max() = 1434.66396264
------------------------------2015-08-24 09:05:10------------------------------
last5MinsDistances = [ 708.94175721 573.70835471 354.38465366 225.89946895 189.02423863
236.66980803 42.42683293] with length 7
last10PointsDistances = [ 949.47644284 708.94175721 573.70835471 354.38465366 225.89946895
189.02423863 236.66980803 42.42683293 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 708.941757205, last10PointsDistance.max() = 949.476442839
------------------------------2015-08-24 09:05:45------------------------------
last5MinsDistances = [ 574.4937518 355.08299957 226.67752615 189.79378732 237.43484584
43.22882778 0.80205899] with length 7
last10PointsDistances = [ 709.62158796 574.4937518 355.08299957 226.67752615 189.79378732
237.43484584 43.22882778 0.80205899 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 574.493751804, last10PointsDistance.max() = 709.621587957
------------------------------2015-08-24 09:06:17------------------------------
last5MinsDistances = [ 368.91489146 243.22441393 206.04771852 253.48795053 61.31355242
19.14813328 18.36479739] with length 7
last10PointsDistances = [ 592.85594992 368.91489146 243.22441393 206.04771852 253.48795053
61.31355242 19.14813328 18.36479739 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 368.914891457, last10PointsDistance.max() = 592.855949921
------------------------------2015-08-24 09:06:48------------------------------
last5MinsDistances = [ 267.01081171 229.46269122 276.3996545 88.52420458 47.10071971
46.33825911 28.11632886] with length 7
last10PointsDistances = [ 387.80789126 267.01081171 229.46269122 276.3996545 88.52420458
47.10071971 46.33825911 28.11632886 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 276.399654496, last10PointsDistance.max() = 387.807891255
------------------------------2015-08-24 09:07:19------------------------------
last5MinsDistances = [ 230.52557103 276.3688442 99.10591105 62.02906553 61.40125785
45.62055596 24.22433893] with length 7
last10PointsDistances = [ 268.33406097 230.52557103 276.3688442 99.10591105 62.02906553
61.40125785 45.62055596 24.22433893 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 276.368844202, last10PointsDistance.max() = 276.368844202
------------------------------2015-08-24 09:07:26------------------------------
last5MinsDistances = [ 240.33748554 286.45212898 105.65416703 66.34423689 65.64344192
48.33001357 22.02926914 11.28342894] with length 8
last10PointsDistances = [ 240.33748554 286.45212898 105.65416703 66.34423689 65.64344192
48.33001357 22.02926914 11.28342894 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 286.452128976, last10PointsDistance.max() = 286.452128976
------------------------------2015-08-24 09:08:17------------------------------
last5MinsDistances = [ 92.3696463 50.98326946 50.22074267 31.99064705 3.88255091
22.71803287 18.98661914] with length 7
last10PointsDistances = [ 279.77822303 92.3696463 50.98326946 50.22074267 31.99064705
3.88255091 22.71803287 18.98661914 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 92.369646299, last10PointsDistance.max() = 279.778223032
------------------------------2015-08-24 09:08:47------------------------------
last5MinsDistances = [ 104.8227001 63.59778569 62.83706247 44.61044277 16.50224853
21.75781625 12.28215332 12.62197092] with length 8
last10PointsDistances = [ 104.8227001 63.59778569 62.83706247 44.61044277 16.50224853
21.75781625 12.28215332 12.62197092 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 104.822700104, last10PointsDistance.max() = 104.822700104
------------------------------2015-08-24 09:09:18------------------------------
last5MinsDistances = [ 118.92973079 77.63974619 76.87410606 58.59215026 30.54753846
29.73524214 18.47390554 26.66692363 14.10852143] with length 9
last10PointsDistances = [ 77.63974619 76.87410606 58.59215026 30.54753846 29.73524214
18.47390554 26.66692363 14.10852143 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 118.929730786, last10PointsDistance.max() = 77.6397461856
------------------------------2015-08-24 09:09:49------------------------------
last5MinsDistances = [ 62.3673859 61.7549701 46.30697387 25.74920265 1.90460883
13.00773927 24.39540576 23.65917409 31.40010036] with length 9
last10PointsDistances = [ 61.7549701 46.30697387 25.74920265 1.90460883 13.00773927
24.39540576 23.65917409 31.40010036 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 62.367385895, last10PointsDistance.max() = 61.7549701038
last5MinPoints.median = 98.0 (Int64Index([94, 95, 96, 97, 98, 99, 100, 101, 102], dtype='int64')), last10Points_df = 99.0 (Int64Index([95, 96, 97, 98, 99, 100, 101, 102, 103], dtype='int64')), sel index = 98
Appending last_trip_end_point filter time
formatted_time 2015-08-24 09:07:19
key background/location
mAccuracy 33.231
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 212642686000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.32847
mLon1 0
mLon2 0
mLongitude -121.9036
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440432439533
platform android
read_ts 0
type message
write_ts 1440432439781
distance 24.22434
speed 0.7807251
Name: 98, dtype: object with index 98
Found trip end at 2015-08-24 09:07:19
------------------------------2015-08-24 09:12:27------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 2.3842984129134552, 'formatted_time': Timestamp('2015-08-24 09:12:27'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440432748866, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 40.5, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.3261552, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 375.615219075147, u'read_ts': 0, u'mElapsedRealtimeNanos': 212950680000000, u'mResults': [0, 0], 'idx': 104, u'mBearing': 0, u'mLongitude': -121.9005237, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440432747528, u'mHasBearing': False}) with idx 104
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-24 09:13:03------------------------------
last5MinsDistances = [ 565.55895295] with length 1
last10PointsDistances = [ 565.55895295 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 09:13:35------------------------------
last5MinsDistances = [ 999.43252031 447.34108528] with length 2
last10PointsDistances = [ 999.43252031 447.34108528 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 09:14:07------------------------------
last5MinsDistances = [ 1391.30479479 839.433898 393.01299665] with length 3
last10PointsDistances = [ 1391.30479479 839.433898 393.01299665 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 09:14:37------------------------------
last5MinsDistances = [ 1563.02504278 1007.81465552 563.68889957 173.54817187] with length 4
last10PointsDistances = [ 1563.02504278 1007.81465552 563.68889957 173.54817187 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 09:15:09------------------------------
last5MinsDistances = [ 2192.67969505 1638.6828358 1194.05636458 801.41035203 630.89411744] with length 5
last10PointsDistances = [ 2192.67969505 1638.6828358 1194.05636458 801.41035203 630.89411744
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 09:16:11------------------------------
last5MinsDistances = [ 2647.13736039 2092.91581528 1648.57921412 1255.91797559 1085.27284828
454.52789341] with length 6
last10PointsDistances = [ 2647.13736039 2092.91581528 1648.57921412 1255.91797559 1085.27284828
454.52789341 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 09:16:42------------------------------
last5MinsDistances = [ 3166.36151792 2612.24749728 2167.96956913 1775.24693146 1604.67141063
973.91371065 519.40615995] with length 7
last10PointsDistances = [ 3166.36151792 2612.24749728 2167.96956913 1775.24693146 1604.67141063
973.91371065 519.40615995 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-24 09:17:14------------------------------
last5MinsDistances = [ 3749.72076532 3194.62929877 2751.01422167 2358.47444165 2187.48732573
1557.064127 1102.58399215 583.62493145] with length 8
last10PointsDistances = [ 3749.72076532 3194.62929877 2751.01422167 2358.47444165 2187.48732573
1557.064127 1102.58399215 583.62493145 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3749.72076532, last10PointsDistance.max() = 3749.72076532
------------------------------2015-08-24 09:17:45------------------------------
last5MinsDistances = [ 3307.83338724 2863.77509926 2471.06594815 2300.40811226 1669.72003297
1215.19619623 695.81908562 115.50155639] with length 8
last10PointsDistances = [ 3307.83338724 2863.77509926 2471.06594815 2300.40811226 1669.72003297
1215.19619623 695.81908562 115.50155639 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3307.83338724, last10PointsDistance.max() = 3307.83338724
------------------------------2015-08-24 09:18:16------------------------------
last5MinsDistances = [ 2861.06787444 2468.38777937 2297.66575617 1667.01971691 1212.49196725
693.15147593 111.89559651 5.57874299] with length 8
last10PointsDistances = [ 2861.06787444 2468.38777937 2297.66575617 1667.01971691 1212.49196725
693.15147593 111.89559651 5.57874299 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2861.06787444, last10PointsDistance.max() = 2861.06787444
------------------------------2015-08-24 09:18:48------------------------------
last5MinsDistances = [ 2471.08244728 2300.38416671 1669.72209738 1215.1951789 695.83928577
114.88638028 3.06787057 3.25603166] with length 8
last10PointsDistances = [ 2471.08244728 2300.38416671 1669.72209738 1215.1951789 695.83928577
114.88638028 3.06787057 3.25603166 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2471.08244728, last10PointsDistance.max() = 2471.08244728
------------------------------2015-08-24 09:19:18------------------------------
last5MinsDistances = [ 2293.94725503 1663.23918355 1208.71936582 689.329397 109.75634115
6.93275964 8.24950368 8.51718453] with length 8
last10PointsDistances = [ 2293.94725503 1663.23918355 1208.71936582 689.329397 109.75634115
6.93275964 8.24950368 8.51718453 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2293.94725503, last10PointsDistance.max() = 2293.94725503
------------------------------2015-08-24 09:19:50------------------------------
last5MinsDistances = [ 1666.40202039 1211.87448726 692.52821192 111.4084326 5.36908345
0.90331289 3.51567162 7.38418583] with length 8
last10PointsDistances = [ 1666.40202039 1211.87448726 692.52821192 111.4084326 5.36908345
0.90331289 3.51567162 7.38418583 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1666.40202039, last10PointsDistance.max() = 1666.40202039
------------------------------2015-08-24 09:20:21------------------------------
last5MinsDistances = [ 1247.03221772 728.45458844 145.24761236 53.7257699 51.56460606
51.25643036 59.60937761 52.46738768] with length 8
last10PointsDistances = [ 1247.03221772 728.45458844 145.24761236 53.7257699 51.56460606
51.25643036 59.60937761 52.46738768 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1247.03221772, last10PointsDistance.max() = 1247.03221772
------------------------------2015-08-24 09:20:52------------------------------
last5MinsDistances = [ 1411.25316678 892.10028715 308.74142845 197.29118557 199.4657896
196.95038547 204.02703972 200.14152678 166.01191946] with length 9
last10PointsDistances = [ 892.10028715 308.74142845 197.29118557 199.4657896 196.95038547
204.02703972 200.14152678 166.01191946 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1411.25316678, last10PointsDistance.max() = 892.100287153
------------------------------2015-08-24 09:21:22------------------------------
last5MinsDistances = [ 1388.61339224 805.36099545 692.96965175 695.51554211 692.86551907
699.54098594 696.15080133 661.64656307 496.62444397] with length 9
last10PointsDistances = [ 805.36099545 692.96965175 695.51554211 692.86551907 699.54098594
696.15080133 661.64656307 496.62444397 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1388.61339224, last10PointsDistance.max() = 805.360995452
------------------------------2015-08-24 09:22:27------------------------------
last5MinsDistances = [ 1276.83475028 1279.02905992 1276.51920816 1283.53954584 1279.70826279
1241.9673322 1079.56917477 587.36407023] with length 8
last10PointsDistances = [ 1276.83475028 1279.02905992 1276.51920816 1283.53954584 1279.70826279
1241.9673322 1079.56917477 587.36407023 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1283.53954584, last10PointsDistance.max() = 1283.53954584
------------------------------2015-08-24 09:22:58------------------------------
last5MinsDistances = [ 1803.56308994 1800.79783563 1807.10470082 1804.15652726 1771.51230402
1605.90402465 1110.28532307 562.64674072] with length 8
last10PointsDistances = [ 1803.56308994 1800.79783563 1807.10470082 1804.15652726 1771.51230402
1605.90402465 1110.28532307 562.64674072 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1807.10470082, last10PointsDistance.max() = 1807.10470082
------------------------------2015-08-24 09:23:30------------------------------
last5MinsDistances = [ 1980.42136402 1986.78632721 1983.76908686 1950.65315044 1785.20840086
1289.12688758 731.14044959 180.68738811] with length 8
last10PointsDistances = [ 1980.42136402 1986.78632721 1983.76908686 1950.65315044 1785.20840086
1289.12688758 731.14044959 180.68738811 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1986.78632721, last10PointsDistance.max() = 1986.78632721
------------------------------2015-08-24 09:24:00------------------------------
last5MinsDistances = [ 2355.61830544 2352.71795934 2320.2371687 2154.60422292 1658.99253434
1100.43931872 548.73100709 370.77720292] with length 8
last10PointsDistances = [ 2355.61830544 2352.71795934 2320.2371687 2154.60422292 1658.99253434
1100.43931872 548.73100709 370.77720292 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2355.61830544, last10PointsDistance.max() = 2355.61830544
------------------------------2015-08-24 09:24:32------------------------------
last5MinsDistances = [ 2729.92186448 2698.68577349 2532.79052168 2038.52652389 1485.22821959
929.5032042 754.44115713 385.2488352 ] with length 8
last10PointsDistances = [ 2729.92186448 2698.68577349 2532.79052168 2038.52652389 1485.22821959
929.5032042 754.44115713 385.2488352 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2729.92186448, last10PointsDistance.max() = 2729.92186448
------------------------------2015-08-24 09:25:04------------------------------
last5MinsDistances = [ 2839.44578452 2673.5945861 2178.96019319 1622.72380318 1069.25554427
892.90912309 522.38796706 141.86351626] with length 8
last10PointsDistances = [ 2839.44578452 2673.5945861 2178.96019319 1622.72380318 1069.25554427
892.90912309 522.38796706 141.86351626 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2839.44578452, last10PointsDistance.max() = 2839.44578452
------------------------------2015-08-24 09:25:35------------------------------
last5MinsDistances = [ 2677.45589225 2182.75605329 1626.13898338 1072.96846491 896.4712624
525.87787823 146.14975248 5.24793486] with length 8
last10PointsDistances = [ 2677.45589225 2182.75605329 1626.13898338 1072.96846491 896.4712624
525.87787823 146.14975248 5.24793486 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2677.45589225, last10PointsDistance.max() = 2677.45589225
------------------------------2015-08-24 09:26:06------------------------------
last5MinsDistances = [ 2187.54128635 1625.93595847 1077.26520223 898.96128879 528.55154835
166.38145518 56.36335166 52.34329707] with length 8
last10PointsDistances = [ 2187.54128635 1625.93595847 1077.26520223 898.96128879 528.55154835
166.38145518 56.36335166 52.34329707 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2187.54128635, last10PointsDistance.max() = 2187.54128635
------------------------------2015-08-24 09:26:38------------------------------
last5MinsDistances = [ 1645.25531529 1099.38171856 920.32911219 550.86418584 198.57407823
89.0435381 84.4183358 35.32723564] with length 8
last10PointsDistances = [ 1645.25531529 1099.38171856 920.32911219 550.86418584 198.57407823
89.0435381 84.4183358 35.32723564 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1645.25531529, last10PointsDistance.max() = 1645.25531529
------------------------------2015-08-24 09:27:09------------------------------
last5MinsDistances = [ 1641.15221245 1089.21126354 912.14462652 541.38321809 165.09826605
27.20160155 21.95675258 39.60425287 66.6188836 ] with length 9
last10PointsDistances = [ 1089.21126354 912.14462652 541.38321809 165.09826605 27.20160155
21.95675258 39.60425287 66.6188836 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1641.15221245, last10PointsDistance.max() = 1089.21126354
------------------------------2015-08-24 09:27:40------------------------------
last5MinsDistances = [ 1240.51135472 1062.45758222 691.89448755 319.1666037 178.0580605
173.43844607 163.62776821 146.92076822 154.10921711] with length 9
last10PointsDistances = [ 1062.45758222 691.89448755 319.1666037 178.0580605 173.43844607
163.62776821 146.92076822 154.10921711 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1240.51135472, last10PointsDistance.max() = 1062.45758222
------------------------------2015-08-24 09:28:16------------------------------
last5MinsDistances = [ 1062.24716502 691.82725142 320.91153208 180.39062021 175.66064298
163.29075866 144.91175041 155.8321718 8.50421257] with length 9
last10PointsDistances = [ 691.82725142 320.91153208 180.39062021 175.66064298 163.29075866
144.91175041 155.8321718 8.50421257 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1062.24716502, last10PointsDistance.max() = 691.827251418
------------------------------2015-08-24 09:28:28------------------------------
last5MinsDistances = [ 1048.46546444 678.05479185 307.62935839 167.48853282 162.69708436
149.51245798 131.3307556 142.61966037 16.52577502 13.78606773] with length 10
last10PointsDistances = [ 307.62935839 167.48853282 162.69708436 149.51245798 131.3307556
142.61966037 16.52577502 13.78606773 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 1048.46546444, last10PointsDistance.max() = 307.629358386
------------------------------2015-08-24 09:29:00------------------------------
last5MinsDistances = [ 684.22718994 311.33650088 170.24561431 165.61920066 156.06275931
139.93257266 146.27963268 7.83018429 12.59646689 12.22634251] with length 10
last10PointsDistances = [ 170.24561431 165.61920066 156.06275931 139.93257266 146.27963268
7.83018429 12.59646689 12.22634251 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 684.227189942, last10PointsDistance.max() = 170.245614305
------------------------------2015-08-24 09:29:31------------------------------
last5MinsDistances = [ 302.3809645 161.46914354 156.8005433 146.824561 130.97273471
137.29408381 16.94867754 19.40217038 10.60431711 9.24158197] with length 10
last10PointsDistances = [ 156.8005433 146.824561 130.97273471 137.29408381 16.94867754
19.40217038 10.60431711 9.24158197 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 302.380964498, last10PointsDistance.max() = 156.800543297
------------------------------2015-08-24 09:30:01------------------------------
last5MinsDistances = [ 151.82521315 146.96096378 132.85736458 115.15938384 126.58792956
31.77456442 30.43450405 16.65594721 25.09727287 16.89334792] with length 10
last10PointsDistances = [ 132.85736458 115.15938384 126.58792956 31.77456442 30.43450405
16.65594721 25.09727287 16.89334792 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 151.825213151, last10PointsDistance.max() = 132.857364582
------------------------------2015-08-24 09:31:04------------------------------
last5MinsDistances = [ 221.25836932 217.64946169 195.74745923 96.29563499 104.3076093
110.09124214 97.90434522 102.55782372 118.23377521] with length 9
last10PointsDistances = [ 217.64946169 195.74745923 96.29563499 104.3076093 110.09124214
97.90434522 102.55782372 118.23377521 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 221.258369319, last10PointsDistance.max() = 217.649461686
------------------------------2015-08-24 09:31:34------------------------------
last5MinsDistances = [ 151.50584496 155.09582007 8.71183023 17.06797374 23.76919873
12.1330732 20.5663089 37.10961066 87.62598892] with length 9
last10PointsDistances = [ 155.09582007 8.71183023 17.06797374 23.76919873 12.1330732
20.5663089 37.10961066 87.62598892 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 155.095820066, last10PointsDistance.max() = 155.095820066
------------------------------2015-08-24 09:32:06------------------------------
last5MinsDistances = [ 193.5929779 91.02109895 98.99093011 104.97122037 92.76778743
97.59356674 113.40957171 5.48142105 82.36729673] with length 9
last10PointsDistances = [ 91.02109895 98.99093011 104.97122037 92.76778743 97.59356674
113.40957171 5.48142105 82.36729673 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 193.592977898, last10PointsDistance.max() = 113.40957171
------------------------------2015-08-24 09:32:36------------------------------
last5MinsDistances = [ 36.67613728 37.10761529 23.80549513 29.16380767 19.96595013
9.16292431 116.21949843 40.33080597 111.61294073] with length 9
last10PointsDistances = [ 37.10761529 23.80549513 29.16380767 19.96595013 9.16292431
116.21949843 40.33080597 111.61294073 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 116.219498435, last10PointsDistance.max() = 116.219498435
------------------------------2015-08-24 09:33:07------------------------------
last5MinsDistances = [ 97.75463142 103.69734746 91.49573057 96.30606179 112.11667351
6.61898835 81.11575683 1.29420539 110.31954605] with length 9
last10PointsDistances = [ 103.69734746 91.49573057 96.30606179 112.11667351 6.61898835
81.11575683 1.29420539 110.31954605 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 112.116673511, last10PointsDistance.max() = 112.116673511
------------------------------2015-08-24 09:33:38------------------------------
last5MinsDistances = [ 99.36870023 104.33132127 120.21565211 4.27562533 88.81930216
6.8922302 118.48276131 8.17881597] with length 8
last10PointsDistances = [ 99.36870023 104.33132127 120.21565211 4.27562533 88.81930216
6.8922302 118.48276131 8.17881597 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 120.215652107, last10PointsDistance.max() = 120.215652107
------------------------------2015-08-24 09:34:09------------------------------
last5MinsDistances = [ 106.64837671 122.33643401 4.10390866 91.62514852 9.28340654
120.31821896 10.5147455 4.30956167] with length 8
last10PointsDistances = [ 106.64837671 122.33643401 4.10390866 91.62514852 9.28340654
120.31821896 10.5147455 4.30956167 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 122.336434013, last10PointsDistance.max() = 122.336434013
------------------------------2015-08-24 09:34:41------------------------------
last5MinsDistances = [ 118.7386566 1.15510294 87.90934621 5.56139582 116.80197472
6.79463973 3.12078017 3.72244569] with length 8
last10PointsDistances = [ 118.7386566 1.15510294 87.90934621 5.56139582 116.80197472
6.79463973 3.12078017 3.72244569 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 118.738656598, last10PointsDistance.max() = 118.738656598
------------------------------2015-08-24 09:35:12------------------------------
last5MinsDistances = [ 100.52516874 13.32400026 95.32438788 30.93131818 94.06192349
101.85072624 104.55351296 100.84719713] with length 8
last10PointsDistances = [ 100.52516874 13.32400026 95.32438788 30.93131818 94.06192349
101.85072624 104.55351296 100.84719713 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 104.553512959, last10PointsDistance.max() = 104.553512959
------------------------------2015-08-24 09:35:42------------------------------
last5MinsDistances = [ 109.41634213 23.16821027 104.29910103 23.77756565 103.02488379
110.91509924 113.47510208 109.78720211 10.0579423 ] with length 9
last10PointsDistances = [ 23.16821027 104.29910103 23.77756565 103.02488379 110.91509924
113.47510208 109.78720211 10.0579423 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 113.475102079, last10PointsDistance.max() = 113.475102079
------------------------------2015-08-24 09:36:14------------------------------
last5MinsDistances = [ 10.09519915 91.94317139 32.32793365 90.68024165 98.47398554
101.17085452 97.46498279 3.38488795 13.08096354] with length 9
last10PointsDistances = [ 91.94317139 32.32793365 90.68024165 98.47398554 101.17085452
97.46498279 3.38488795 13.08096354 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 101.170854515, last10PointsDistance.max() = 101.170854515
------------------------------2015-08-24 09:36:45------------------------------
last5MinsDistances = [ 100.09417493 21.78537943 98.81279297 106.77230552 109.21845448
105.54870511 9.19109184 5.51401604 11.11352256] with length 9
last10PointsDistances = [ 21.78537943 98.81279297 106.77230552 109.21845448 105.54870511
9.19109184 5.51401604 11.11352256 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 109.218454484, last10PointsDistance.max() = 109.218454484
------------------------------2015-08-24 09:37:15------------------------------
last5MinsDistances = [ 149.87570315 41.83791644 34.18662451 34.61627193 36.91292648
129.89914399 139.54216072 126.61248324 135.98540568] with length 9
last10PointsDistances = [ 41.83791644 34.18662451 34.61627193 36.91292648 129.89914399
139.54216072 126.61248324 135.98540568 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 149.875703153, last10PointsDistance.max() = 139.542160723
------------------------------2015-08-24 09:37:47------------------------------
last5MinsDistances = [ 98.67529375 93.83161929 96.3572811 96.9499397 157.65446948
167.62600439 155.02133346 166.02023118 67.62552316] with length 9
last10PointsDistances = [ 93.83161929 96.3572811 96.9499397 157.65446948 167.62600439
155.02133346 166.02023118 67.62552316 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 167.626004392, last10PointsDistance.max() = 167.626004392
------------------------------2015-08-24 09:38:18------------------------------
last5MinsDistances = [ 173.48895627 172.83954745 175.82495249 267.43218229 277.37519263
264.29592246 274.35947791 140.1556874 124.73164007] with length 9
last10PointsDistances = [ 172.83954745 175.82495249 267.43218229 277.37519263 264.29592246
274.35947791 140.1556874 124.73164007 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 277.375192633, last10PointsDistance.max() = 277.375192633
------------------------------2015-08-24 09:38:49------------------------------
last5MinsDistances = [ 348.59257333 351.8288405 445.83206659 455.74620592 442.67329266
452.62868392 317.42556956 299.32705496 178.49715925] with length 9
last10PointsDistances = [ 351.8288405 445.83206659 455.74620592 442.67329266 452.62868392
317.42556956 299.32705496 178.49715925 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 455.746205917, last10PointsDistance.max() = 455.746205917
------------------------------2015-08-24 09:39:20------------------------------
last5MinsDistances = [ 478.24766658 569.29021581 579.30500059 566.23527878 576.53555696
442.9202015 417.27761879 302.78376354 129.51353668] with length 9
last10PointsDistances = [ 569.29021581 579.30500059 566.23527878 576.53555696 442.9202015
417.27761879 302.78376354 129.51353668 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 579.305000587, last10PointsDistance.max() = 579.305000587
------------------------------2015-08-24 09:39:52------------------------------
last5MinsDistances = [ 671.10332482 681.11900308 668.0497046 678.35061186 544.62070313
518.73914266 404.51732998 229.35599171 101.81535932] with length 9
last10PointsDistances = [ 681.11900308 668.0497046 678.35061186 544.62070313 518.73914266
404.51732998 229.35599171 101.81535932 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 681.119003079, last10PointsDistance.max() = 681.119003079
------------------------------2015-08-24 09:40:23------------------------------
last5MinsDistances = [ 697.1707095 684.10877096 694.4575616 561.04000433 534.21780009
420.89461704 246.46556 118.13058948 17.93321522] with length 9
last10PointsDistances = [ 684.10877096 694.4575616 561.04000433 534.21780009 420.89461704
246.46556 118.13058948 17.93321522 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 697.170709504, last10PointsDistance.max() = 694.457561596
------------------------------2015-08-24 09:40:57------------------------------
last5MinsDistances = [ 764.18866702 774.94062301 645.84925237 610.31653189 507.06700235
343.55245017 215.86838686 133.77246693 117.22518593] with length 9
last10PointsDistances = [ 774.94062301 645.84925237 610.31653189 507.06700235 343.55245017
215.86838686 133.77246693 117.22518593 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 774.940623009, last10PointsDistance.max() = 774.940623009
------------------------------2015-08-24 09:41:28------------------------------
last5MinsDistances = [ 783.95000264 656.51631773 618.6219854 518.73882567 359.58069852
233.9991875 158.1978001 142.37551608 27.96714413] with length 9
last10PointsDistances = [ 656.51631773 618.6219854 518.73882567 359.58069852 233.9991875
158.1978001 142.37551608 27.96714413 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 783.950002644, last10PointsDistance.max() = 656.516317727
------------------------------2015-08-24 09:41:59------------------------------
last5MinsDistances = [ 1031.9863304 991.97558188 894.60602954 732.75944128 604.20277841
511.8366536 493.90458317 389.37296354 375.89321703] with length 9
last10PointsDistances = [ 991.97558188 894.60602954 732.75944128 604.20277841 511.8366536
493.90458317 389.37296354 375.89321703 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1031.9863304, last10PointsDistance.max() = 991.975581875
------------------------------2015-08-24 09:42:31------------------------------
last5MinsDistances = [ 995.21800967 898.13623708 736.58443608 608.09833959 515.94398153
498.01318494 393.14319273 379.46140331 4.85472839] with length 9
last10PointsDistances = [ 898.13623708 736.58443608 608.09833959 515.94398153 498.01318494
393.14319273 379.46140331 4.85472839 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 995.218009666, last10PointsDistance.max() = 898.136237075
------------------------------2015-08-24 09:43:02------------------------------
last5MinsDistances = [ 890.52822911 728.91305889 600.42149816 508.28030175 490.34978818
385.47813833 371.84031905 4.67512347 7.67793918] with length 9
last10PointsDistances = [ 728.91305889 600.42149816 508.28030175 490.34978818 385.47813833
371.84031905 4.67512347 7.67793918 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 890.528229107, last10PointsDistance.max() = 728.913058889
------------------------------2015-08-24 09:43:32------------------------------
last5MinsDistances = [ 801.6055881 689.62894778 625.87490202 610.13473648 493.4026997
467.77310616 293.11664733 289.97042972 290.6728353 ] with length 9
last10PointsDistances = [ 689.62894778 625.87490202 610.13473648 493.4026997 467.77310616
293.11664733 289.97042972 290.6728353 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 801.605588105, last10PointsDistance.max() = 689.628947775
------------------------------2015-08-24 09:44:03------------------------------
last5MinsDistances = [ 756.33931988 714.42151698 701.37260951 592.16884558 564.33622578
480.02565866 477.29554757 477.1483258 191.4006368 ] with length 9
last10PointsDistances = [ 714.42151698 701.37260951 592.16884558 564.33622578 480.02565866
477.29554757 477.1483258 191.4006368 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 756.339319883, last10PointsDistance.max() = 714.42151698
------------------------------2015-08-24 09:44:34------------------------------
last5MinsDistances = [ 715.86547126 702.83507458 593.69774464 565.86063189 481.80584215
479.07333079 478.93060394 193.10925427 1.80196733] with length 9
last10PointsDistances = [ 702.83507458 593.69774464 565.86063189 481.80584215 479.07333079
478.93060394 193.10925427 1.80196733 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 715.865471262, last10PointsDistance.max() = 702.83507458
------------------------------2015-08-24 09:45:05------------------------------
last5MinsDistances = [ 698.88438462 589.29543632 561.49176833 474.05523533 471.30446099
471.19731956 185.10049478 6.46419336 8.05812104] with length 9
last10PointsDistances = [ 589.29543632 561.49176833 474.05523533 471.30446099 471.19731956
185.10049478 6.46419336 8.05812104 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 698.884384619, last10PointsDistance.max() = 589.29543632
------------------------------2015-08-24 09:45:35------------------------------
last5MinsDistances = [ 592.15992733 564.36318791 475.34845272 472.57338275 472.513028
185.91556377 7.12481232 8.23258175 3.15279143] with length 9
last10PointsDistances = [ 564.36318791 475.34845272 472.57338275 472.513028 185.91556377
7.12481232 8.23258175 3.15279143 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 592.159927325, last10PointsDistance.max() = 564.363187915
------------------------------2015-08-24 09:46:06------------------------------
last5MinsDistances = [ 700.64750435 526.9122962 523.02221635 525.38932791 249.32445702
172.11644516 171.65752426 170.41718904 167.38190879] with length 9
last10PointsDistances = [ 526.9122962 523.02221635 525.38932791 249.32445702 172.11644516
171.65752426 170.41718904 167.38190879 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 700.647504355, last10PointsDistance.max() = 526.912296199
------------------------------2015-08-24 09:46:36------------------------------
last5MinsDistances = [ 615.20839342 611.51307904 613.40058275 328.84703748 197.70680682
196.45998764 199.22177346 196.1524053 95.63261456] with length 9
last10PointsDistances = [ 611.51307904 613.40058275 328.84703748 197.70680682 196.45998764
199.22177346 196.1524053 95.63261456 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 615.208393424, last10PointsDistance.max() = 613.400582754
------------------------------2015-08-24 09:47:08------------------------------
last5MinsDistances = [ 602.05112668 603.85347575 318.49217683 185.96418448 184.72317095
187.45892987 184.38804594 89.70911952 11.77059703] with length 9
last10PointsDistances = [ 603.85347575 318.49217683 185.96418448 184.72317095 187.45892987
184.38804594 89.70911952 11.77059703 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 603.85347575, last10PointsDistance.max() = 603.85347575
------------------------------2015-08-24 09:47:40------------------------------
last5MinsDistances = [ 613.36353781 332.03008129 211.97603653 210.83922896 212.96940695
209.85050697 89.62175661 21.94518275 30.19358877] with length 9
last10PointsDistances = [ 332.03008129 211.97603653 210.83922896 212.96940695 209.85050697
89.62175661 21.94518275 30.19358877 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 613.363537814, last10PointsDistance.max() = 332.030081293
------------------------------2015-08-24 09:48:11------------------------------
last5MinsDistances = [ 306.79950365 213.84817937 213.03985088 213.44311682 210.29843848
57.47586258 63.24336969 64.77929861 46.15530238] with length 9
last10PointsDistances = [ 213.84817937 213.03985088 213.44311682 210.29843848 57.47586258
63.24336969 64.77929861 46.15530238 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 306.799503655, last10PointsDistance.max() = 213.848179375
------------------------------2015-08-24 09:48:42------------------------------
last5MinsDistances = [ 262.43725426 261.54338498 262.35712347 259.2052286 105.74208774
85.43600442 93.13043943 63.54731222 50.18966187] with length 9
last10PointsDistances = [ 261.54338498 262.35712347 259.2052286 105.74208774 85.43600442
93.13043943 63.54731222 50.18966187 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 262.437254264, last10PointsDistance.max() = 262.35712347
------------------------------2015-08-24 09:49:12------------------------------
last5MinsDistances = [ 262.79874636 263.52477389 260.37390259 105.70208267 88.07475049
95.59179048 66.15628901 50.82544862 3.1161958 ] with length 9
last10PointsDistances = [ 263.52477389 260.37390259 105.70208267 88.07475049 95.59179048
66.15628901 50.82544862 3.1161958 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 263.524773888, last10PointsDistance.max() = 263.524773888
------------------------------2015-08-24 09:49:43------------------------------
last5MinsDistances = [ 265.53240319 262.3806396 108.49541182 88.28890178 96.11239261
66.43409717 53.22000866 3.20602632 3.17731122] with length 9
last10PointsDistances = [ 262.3806396 108.49541182 88.28890178 96.11239261 66.43409717
53.22000866 3.20602632 3.17731122 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 265.532403187, last10PointsDistance.max() = 262.380639596
------------------------------2015-08-24 09:50:14------------------------------
last5MinsDistances = [ 259.94457906 105.85008659 86.89125021 94.50314654 64.9873997
50.63772331 1.64098861 1.48787267 2.64536932] with length 9
last10PointsDistances = [ 105.85008659 86.89125021 94.50314654 64.9873997 50.63772331
1.64098861 1.48787267 2.64536932 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 259.944579056, last10PointsDistance.max() = 105.850086593
------------------------------2015-08-24 09:50:45------------------------------
last5MinsDistances = [ 105.65261669 86.17141409 93.80745344 64.27150803 50.29033807
0.91800229 2.20178732 2.93166638 0.74914617] with length 9
last10PointsDistances = [ 86.17141409 93.80745344 64.27150803 50.29033807 0.91800229
2.20178732 2.93166638 0.74914617 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 105.652616692, last10PointsDistance.max() = 93.8074534398
------------------------------2015-08-24 09:51:16------------------------------
last5MinsDistances = [ 88.00697993 95.59979784 66.10053086 51.32036104 2.72421119
0.77078884 2.41672373 1.12432312 1.86807575] with length 9
last10PointsDistances = [ 95.59979784 66.10053086 51.32036104 2.72421119 0.77078884
2.41672373 1.12432312 1.86807575 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 95.5997978358, last10PointsDistance.max() = 95.5997978358
last5MinPoints.median = 171.0 (Int64Index([167, 168, 169, 170, 171, 172, 173, 174, 175], dtype='int64')), last10Points_df = 172.0 (Int64Index([168, 169, 170, 171, 172, 173, 174, 175, 176], dtype='int64')), sel index = 171
Appending last_trip_end_point filter time
formatted_time 2015-08-24 09:48:42
key background/location
mAccuracy 30
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 215124572000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.26742
mLon1 0
mLon2 0
mLongitude -121.958
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440434922747
platform android
read_ts 0
type message
write_ts 1440434923790
distance 50.18966
speed 1.61076
Name: 171, dtype: object with index 171
Found trip end at 2015-08-24 09:48:42
------------------------------2015-08-24 09:51:48------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.0509455388845588, 'formatted_time': Timestamp('2015-08-24 09:51:48'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440435108924, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 30.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.2674122, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 1.6113564493797103, u'read_ts': 0, u'mElapsedRealtimeNanos': 215310027000000, u'mResults': [0, 0], 'idx': 177, u'mBearing': 0, u'mLongitude': -121.958017, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440435108203, u'mHasBearing': False}) with idx 177
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-24 18:49:24------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 233.21524056 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-24 18:49:58------------------------------
last5MinsDistances = [ 27.51637411] with length 1
last10PointsDistances = [ 260.13029658 27.51637411 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 18:50:33------------------------------
last5MinsDistances = [ 29.64402648 2.735751 ] with length 2
last10PointsDistances = [ 261.82130446 29.64402648 2.735751 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 18:51:05------------------------------
last5MinsDistances = [ 37.81382399 21.99394781 19.98635565] with length 3
last10PointsDistances = [ 260.1507787 37.81382399 21.99394781 19.98635565 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 18:51:24------------------------------
last5MinsDistances = [ 232.48327046 219.44289169 216.94898377 198.41550335] with length 4
last10PointsDistances = [ 378.26963525 232.48327046 219.44289169 216.94898377 198.41550335
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 18:52:07------------------------------
last5MinsDistances = [ 491.26744025 475.47257808 472.8383175 455.58373786 260.48271625] with length 5
last10PointsDistances = [ 622.68199604 491.26744025 475.47257808 472.8383175 455.58373786
260.48271625 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 18:52:38------------------------------
last5MinsDistances = [ 494.58231875 479.00679431 476.3798269 459.02529403 263.43634013
5.82029649] with length 6
last10PointsDistances = [ 624.15279256 494.58231875 479.00679431 476.3798269 459.02529403
263.43634013 5.82029649 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-24 18:53:41------------------------------
last5MinsDistances = [ 593.26138151 566.90013624 564.39522531 557.59577945 449.8066569
360.62191514 365.60785554] with length 7
last10PointsDistances = [ 805.27315186 593.26138151 566.90013624 564.39522531 557.59577945
449.8066569 360.62191514 365.60785554 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 593.261381508, last10PointsDistance.max() = 805.273151861
------------------------------2015-08-24 18:54:12------------------------------
last5MinsDistances = [ 660.63622145 634.01112952 631.54861048 625.41780738 520.46269736
419.13286946 423.78698105 70.68579116] with length 8
last10PointsDistances = [ 660.63622145 634.01112952 631.54861048 625.41780738 520.46269736
419.13286946 423.78698105 70.68579116 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 660.636221447, last10PointsDistance.max() = 660.636221447
------------------------------2015-08-24 18:55:45------------------------------
last5MinsDistances = [ 714.00929374 631.59858096 547.55431017 552.25968781 190.81464098
128.64575548] with length 6
last10PointsDistances = [ 719.67253748 717.40397291 714.00929374 631.59858096 547.55431017
552.25968781 190.81464098 128.64575548 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 714.009293744, last10PointsDistance.max() = 719.672537475
------------------------------2015-08-24 18:56:16------------------------------
last5MinsDistances = [ 772.32832708 712.99046712 717.87460414 352.72061077 296.40755938
168.98375692] with length 6
last10PointsDistances = [ 826.70421897 826.60845957 772.32832708 712.99046712 717.87460414
352.72061077 296.40755938 168.98375692 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 772.32832708, last10PointsDistance.max() = 826.704218967
------------------------------2015-08-24 18:56:48------------------------------
last5MinsDistances = [ 830.95936888 835.98205586 470.40672754 417.54925158 291.46454801
123.12718342] with length 6
last10PointsDistances = [ 908.52865896 873.01863691 830.95936888 835.98205586 470.40672754
417.54925158 291.46454801 123.12718342 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 835.982055862, last10PointsDistance.max() = 908.528658958
------------------------------2015-08-24 18:57:19------------------------------
last5MinsDistances = [ 979.56933134 616.59086883 570.06333504 448.02361152 283.4646854
162.91537227] with length 6
last10PointsDistances = [ 988.92667761 974.31369923 979.56933134 616.59086883 570.06333504
448.02361152 283.4646854 162.91537227 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 979.569331342, last10PointsDistance.max() = 988.926677605
------------------------------2015-08-24 18:57:49------------------------------
last5MinsDistances = [ 696.65384601 650.48313013 528.2827885 362.90412282 241.01646473
80.42405433] with length 6
last10PointsDistances = [ 1053.79237905 1059.07766036 696.65384601 650.48313013 528.2827885
362.90412282 241.01646473 80.42405433 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 696.653846015, last10PointsDistance.max() = 1059.07766036
------------------------------2015-08-24 18:58:19------------------------------
last5MinsDistances = [ 801.15175732 754.87478967 632.14662617 465.76806508 343.05508912
184.85624375 104.52606548] with length 7
last10PointsDistances = [ 1163.29214247 801.15175732 754.87478967 632.14662617 465.76806508
343.05508912 184.85624375 104.52606548 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 801.151757323, last10PointsDistance.max() = 1163.29214247
------------------------------2015-08-24 18:58:31------------------------------
last5MinsDistances = [ 832.43017385 784.98867775 661.25419767 493.89211537 370.81961854
215.87190579 136.38139584 35.32316856] with length 8
last10PointsDistances = [ 832.43017385 784.98867775 661.25419767 493.89211537 370.81961854
215.87190579 136.38139584 35.32316856 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 832.430173849, last10PointsDistance.max() = 832.430173849
------------------------------2015-08-24 18:59:16------------------------------
last5MinsDistances = [ 765.23868193 596.26286827 474.3211029 332.95904217 258.43799842
165.72524905 130.6036193 ] with length 7
last10PointsDistances = [ 891.8679875 765.23868193 596.26286827 474.3211029 332.95904217
258.43799842 165.72524905 130.6036193 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 765.238681932, last10PointsDistance.max() = 891.867987496
------------------------------2015-08-24 19:00:18------------------------------
last5MinsDistances = [ 734.04978643 565.12543591 444.13047713 309.12939842 238.59329301
156.15835613 123.30419901 39.26338415] with length 8
last10PointsDistances = [ 734.04978643 565.12543591 444.13047713 309.12939842 238.59329301
156.15835613 123.30419901 39.26338415 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 734.049786434, last10PointsDistance.max() = 734.049786434
------------------------------2015-08-24 19:00:38------------------------------
last5MinsDistances = [ 733.74143295 564.84502452 444.01890097 309.91618456 239.88142324
158.49842715 125.89829636 41.84628338 3.64200691] with length 9
last10PointsDistances = [ 564.84502452 444.01890097 309.91618456 239.88142324 158.49842715
125.89829636 41.84628338 3.64200691 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 733.741432951, last10PointsDistance.max() = 564.845024518
------------------------------2015-08-24 19:01:09------------------------------
last5MinsDistances = [ 568.03064351 446.26271832 306.74477301 233.69798326 145.69071145
111.55051801 28.60731544 19.07310137 22.71031839] with length 9
last10PointsDistances = [ 446.26271832 306.74477301 233.69798326 145.69071145 111.55051801
28.60731544 19.07310137 22.71031839 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 568.03064351, last10PointsDistance.max() = 446.262718318
------------------------------2015-08-24 19:01:40------------------------------
last5MinsDistances = [ 456.25962412 323.08959943 253.22913084 171.23610064 138.2309005
39.17238677 15.11555915 13.3506136 29.96610879] with length 9
last10PointsDistances = [ 323.08959943 253.22913084 171.23610064 138.2309005 39.17238677
15.11555915 13.3506136 29.96610879 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 456.25962412, last10PointsDistance.max() = 323.089599435
------------------------------2015-08-24 19:02:11------------------------------
last5MinsDistances = [ 309.81720674 240.4036153 160.39602237 128.1590398 45.6109653
7.81228533 4.23319516 26.86745545 13.44595902] with length 9
last10PointsDistances = [ 240.4036153 160.39602237 128.1590398 45.6109653 7.81228533
4.23319516 26.86745545 13.44595902 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 309.817206742, last10PointsDistance.max() = 240.403615301
------------------------------2015-08-24 19:02:44------------------------------
last5MinsDistances = [ 239.75935141 154.33863098 120.70850514 30.75473565 9.24512931
12.61066882 11.18983704 18.88353236 16.83398903] with length 9
last10PointsDistances = [ 154.33863098 120.70850514 30.75473565 9.24512931 12.61066882
11.18983704 18.88353236 16.83398903 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 239.759351405, last10PointsDistance.max() = 154.338630982
------------------------------2015-08-24 19:03:15------------------------------
last5MinsDistances = [ 158.3062153 123.82379211 17.53098086 21.9682911 24.82919665
13.59751545 25.36396863 28.82087326 13.23061602] with length 9
last10PointsDistances = [ 123.82379211 17.53098086 21.9682911 24.82919665 13.59751545
25.36396863 28.82087326 13.23061602 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 158.306215302, last10PointsDistance.max() = 123.823792114
------------------------------2015-08-24 19:03:46------------------------------
last5MinsDistances = [ 41.99125619 2.99727337 1.38119651 21.94185422 14.6855679
4.94733205 12.23327822 24.80953566] with length 8
last10PointsDistances = [ 41.99125619 2.99727337 1.38119651 21.94185422 14.6855679
4.94733205 12.23327822 24.80953566 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 41.9912561922, last10PointsDistance.max() = 41.9912561922
last5MinPoints.median = 197.5 (Int64Index([194, 195, 196, 197, 198, 199, 200, 201], dtype='int64')), last10Points_df = 198.0 (Int64Index([194, 195, 196, 197, 198, 199, 200, 201, 202], dtype='int64')), sel index = 197
Appending last_trip_end_point filter time
formatted_time 2015-08-24 19:01:09
key background/location
mAccuracy 45
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 248263785000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.27926
mLon1 0
mLon2 0
mLongitude -121.9488
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440468069592
platform android
read_ts 0
type message
write_ts 1440468069803
distance 22.71032
speed 0.7243428
Name: 197, dtype: object with index 197
Found trip end at 2015-08-24 19:01:09
------------------------------2015-08-24 19:04:17------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.30223581704709884, 'formatted_time': Timestamp('2015-08-24 19:04:17'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440468258124, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 42.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.279231, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 9.577853042222563, u'read_ts': 0, u'mElapsedRealtimeNanos': 248452096000000, u'mResults': [0, 0], 'idx': 203, u'mBearing': 0, u'mLongitude': -121.9486687, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440468257902, u'mHasBearing': False}) with idx 203
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-24 19:04:49------------------------------
last5MinsDistances = [ 0.94556724] with length 1
last10PointsDistances = [ 0.94556724 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 19:15:31------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 603.42230436 603.185388 0. ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-24 19:16:08------------------------------
last5MinsDistances = [ 313.95837893] with length 1
last10PointsDistances = [ 915.85168442 915.65283836 313.95837893 0. ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-24 19:16:40------------------------------
last5MinsDistances = [ 336.79484907 25.60853544] with length 2
last10PointsDistances = [ 937.5429639 937.35770897 336.79484907 25.60853544 0. ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-24 19:17:11------------------------------
last5MinsDistances = [ 648.81911663 335.14344135 313.55148543] with length 3
last10PointsDistances = [ 1250.94093027 1250.74716776 648.81911663 335.14344135 313.55148543
0. ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-24 19:17:42------------------------------
last5MinsDistances = [ 1074.62163535 760.96729313 737.82726202 429.51818746] with length 4
last10PointsDistances = [ 1673.17810514 1673.03490435 1074.62163535 760.96729313 737.82726202
429.51818746 0. ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-24 19:19:15------------------------------
last5MinsDistances = [ 1906.61558346 1595.87882888 1575.48306221 1262.75894186 866.02025147] with length 5
last10PointsDistances = [ 2510.01772369 2509.7737643 1906.61558346 1595.87882888 1575.48306221
1262.75894186 866.02025147 0. ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-24 19:19:47------------------------------
last5MinsDistances = [ 2271.25830214 1962.17483864 1942.29186223 1630.48666055 1236.98274384
370.96905383] with length 6
last10PointsDistances = [ 2874.25685708 2873.98903691 2271.25830214 1962.17483864 1942.29186223
1630.48666055 1236.98274384 370.96905383 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 2271.25830214, last10PointsDistance.max() = 2874.25685708
------------------------------2015-08-24 19:20:20------------------------------
last5MinsDistances = [ 2394.15338961 2084.50543193 2064.42415349 1752.17646697 1354.7871145
490.1384771 124.74626756] with length 7
last10PointsDistances = [ 2997.05207753 2394.15338961 2084.50543193 2064.42415349 1752.17646697
1354.7871145 490.1384771 124.74626756 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 2394.15338961, last10PointsDistance.max() = 2997.05207753
------------------------------2015-08-24 19:21:22------------------------------
last5MinsDistances = [ 3356.8675338 3045.19568065 2646.79698958 1783.67328029 1414.70911958
1293.54725433] with length 6
last10PointsDistances = [ 3684.76929249 3376.59913659 3356.8675338 3045.19568065 2646.79698958
1783.67328029 1414.70911958 1293.54725433 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 3356.8675338, last10PointsDistance.max() = 3684.76929249
------------------------------2015-08-24 19:21:53------------------------------
last5MinsDistances = [ 3188.48537356 2788.94686708 1926.57114669 1558.05241302 1436.5259347
144.28712781] with length 6
last10PointsDistances = [ 3520.12657682 3500.32333814 3188.48537356 2788.94686708 1926.57114669
1558.05241302 1436.5259347 144.28712781 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 3188.48537356, last10PointsDistance.max() = 3520.12657682
------------------------------2015-08-24 19:22:28------------------------------
last5MinsDistances = [ 2887.98767868 2025.75504495 1657.26893276 1535.72289561 243.16582147
99.21666851] with length 6
last10PointsDistances = [ 3599.53979877 3287.69917246 2887.98767868 2025.75504495 1657.26893276
1535.72289561 243.16582147 99.21666851 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 2887.98767868, last10PointsDistance.max() = 3599.53979877
------------------------------2015-08-24 19:23:30------------------------------
last5MinsDistances = [ 2837.22905368 2468.73556338 2347.22456935 1054.11036531 910.71661274
811.50875015] with length 6
last10PointsDistances = [ 4099.19364231 3698.87198367 2837.22905368 2468.73556338 2347.22456935
1054.11036531 910.71661274 811.50875015 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 2837.22905368, last10PointsDistance.max() = 4099.19364231
------------------------------2015-08-24 19:24:01------------------------------
last5MinsDistances = [ 2825.50896243 2457.21163193 2335.56219477 1042.74170401 899.16086925
799.94422219 16.61766596] with length 7
last10PointsDistances = [ 3686.83384205 2825.50896243 2457.21163193 2335.56219477 1042.74170401
899.16086925 799.94422219 16.61766596 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 2825.50896243, last10PointsDistance.max() = 3686.83384205
------------------------------2015-08-24 19:24:31------------------------------
last5MinsDistances = [ 2883.952335 2762.47215126 1469.28088786 1325.95868495 1226.7534378
415.24799414 427.12102463] with length 7
last10PointsDistances = [ 3252.4755118 2883.952335 2762.47215126 1469.28088786 1325.95868495
1226.7534378 415.24799414 427.12102463 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 2883.952335, last10PointsDistance.max() = 3252.4755118
------------------------------2015-08-24 19:25:05------------------------------
last5MinsDistances = [ 3236.47536251 1943.26331683 1799.96451141 1700.75882605 889.25118056
901.00800716 474.00586975] with length 7
last10PointsDistances = [ 3357.94981029 3236.47536251 1943.26331683 1799.96451141 1700.75882605
889.25118056 901.00800716 474.00586975 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 3236.47536251, last10PointsDistance.max() = 3357.94981029
------------------------------2015-08-24 19:25:35------------------------------
last5MinsDistances = [ 2449.28830168 2306.16846692 2206.98154984 1395.54931862 1407.45262635
980.34650133 506.5733664 ] with length 7
last10PointsDistances = [ 3742.68943837 2449.28830168 2306.16846692 2206.98154984 1395.54931862
1407.45262635 980.34650133 506.5733664 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 2449.28830168, last10PointsDistance.max() = 3742.68943837
------------------------------2015-08-24 19:26:06------------------------------
last5MinsDistances = [ 2438.06760258 2293.8073435 2195.42750763 1397.73078107 1406.41692938
998.86265845 571.42649958 347.40500497] with length 8
last10PointsDistances = [ 2438.06760258 2293.8073435 2195.42750763 1397.73078107 1406.41692938
998.86265845 571.42649958 347.40500497 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2438.06760258, last10PointsDistance.max() = 2438.06760258
------------------------------2015-08-24 19:26:37------------------------------
last5MinsDistances = [ 2400.11486178 2302.23597844 1511.28612359 1519.2900277 1118.77937122
702.01142837 444.52574473 132.6923555 ] with length 8
last10PointsDistances = [ 2400.11486178 2302.23597844 1511.28612359 1519.2900277 1118.77937122
702.01142837 444.52574473 132.6923555 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2400.11486178, last10PointsDistance.max() = 2400.11486178
------------------------------2015-08-24 19:27:07------------------------------
last5MinsDistances = [ 2299.01391314 1512.37247988 1519.96790044 1124.44867307 718.41159146
483.72449011 158.34690438 42.20532682] with length 8
last10PointsDistances = [ 2299.01391314 1512.37247988 1519.96790044 1124.44867307 718.41159146
483.72449011 158.34690438 42.20532682 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2299.01391314, last10PointsDistance.max() = 2299.01391314
------------------------------2015-08-24 19:27:31------------------------------
last5MinsDistances = [ 1591.16327759 1599.12959469 1198.61540097 778.47370205 485.04013411
207.08030227 79.95984188 88.20743036] with length 8
last10PointsDistances = [ 1591.16327759 1599.12959469 1198.61540097 778.47370205 485.04013411
207.08030227 79.95984188 88.20743036 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1599.12959469, last10PointsDistance.max() = 1599.12959469
------------------------------2015-08-24 19:28:39------------------------------
last5MinsDistances = [ 1757.87792381 1355.14576361 925.7532474 573.3168133 357.59107911
238.77592614 244.15496704 159.40331662] with length 8
last10PointsDistances = [ 1757.87792381 1355.14576361 925.7532474 573.3168133 357.59107911
238.77592614 244.15496704 159.40331662 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1757.87792381, last10PointsDistance.max() = 1757.87792381
------------------------------2015-08-24 19:29:11------------------------------
last5MinsDistances = [ 1369.77799994 935.78156758 569.1128948 371.02418297 257.39339952
266.23596548 179.50793676 29.24140341] with length 8
last10PointsDistances = [ 1369.77799994 935.78156758 569.1128948 371.02418297 257.39339952
266.23596548 179.50793676 29.24140341 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1369.77799994, last10PointsDistance.max() = 1369.77799994
------------------------------2015-08-24 19:29:43------------------------------
last5MinsDistances = [ 912.61685507 565.64770759 343.74179011 223.92665468 228.93579362
144.40707387 15.23547401 41.996674 ] with length 8
last10PointsDistances = [ 912.61685507 565.64770759 343.74179011 223.92665468 228.93579362
144.40707387 15.23547401 41.996674 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 912.616855072, last10PointsDistance.max() = 912.616855072
------------------------------2015-08-24 19:30:02------------------------------
last5MinsDistances = [ 909.83597081 559.51860747 341.74938617 223.6100127 230.09077454
144.54100318 15.91812327 37.73207871 7.98727659] with length 9
last10PointsDistances = [ 559.51860747 341.74938617 223.6100127 230.09077454 144.54100318
15.91812327 37.73207871 7.98727659 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 909.835970805, last10PointsDistance.max() = 559.518607473
------------------------------2015-08-24 19:30:45------------------------------
last5MinsDistances = [ 362.84385318 243.04825082 247.43344467 163.43627802 6.90205786
31.79111419 19.20713288 21.91658425] with length 8
last10PointsDistances = [ 362.84385318 243.04825082 247.43344467 163.43627802 6.90205786
31.79111419 19.20713288 21.91658425 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 362.843853181, last10PointsDistance.max() = 362.843853181
------------------------------2015-08-24 19:31:04------------------------------
last5MinsDistances = [ 429.15905957 324.09271158 336.67708941 248.81738136 101.9038756
73.83206793 115.70420937 111.49690864 102.34663673] with length 9
last10PointsDistances = [ 324.09271158 336.67708941 248.81738136 101.9038756 73.83206793
115.70420937 111.49690864 102.34663673 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 429.159059572, last10PointsDistance.max() = 336.677089406
------------------------------2015-08-24 19:31:48------------------------------
last5MinsDistances = [ 486.59033148 443.17345251 350.01766874 363.12835011 354.53983184
361.57862785 343.20234035 382.35863017] with length 8
last10PointsDistances = [ 486.59033148 443.17345251 350.01766874 363.12835011 354.53983184
361.57862785 343.20234035 382.35863017 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 486.590331475, last10PointsDistance.max() = 486.590331475
------------------------------2015-08-24 19:32:21------------------------------
last5MinsDistances = [ 631.72216866 565.45353987 581.83984217 567.70467044 575.24812979
558.86924377 606.47829677 224.95337022] with length 8
last10PointsDistances = [ 631.72216866 565.45353987 581.83984217 567.70467044 575.24812979
558.86924377 606.47829677 224.95337022 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 631.722168657, last10PointsDistance.max() = 631.722168657
------------------------------2015-08-24 19:32:53------------------------------
last5MinsDistances = [ 860.68785264 872.12299912 865.63529236 872.59655763 853.83207319
881.28208006 511.18344074 322.80252484] with length 8
last10PointsDistances = [ 860.68785264 872.12299912 865.63529236 872.59655763 853.83207319
881.28208006 511.18344074 322.80252484 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 881.28208006, last10PointsDistance.max() = 881.28208006
------------------------------2015-08-24 19:33:27------------------------------
last5MinsDistances = [ 1475.75510808 1487.96647365 1480.13630482 1487.25373603 1468.93198282
1497.502828 1125.74598401 920.77678475 616.37616187] with length 9
last10PointsDistances = [ 1487.96647365 1480.13630482 1487.25373603 1468.93198282 1497.502828
1125.74598401 920.77678475 616.37616187 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 1497.502828, last10PointsDistance.max() = 1497.502828
------------------------------2015-08-24 19:33:59------------------------------
last5MinsDistances = [ 2102.22013896 2093.66646057 2100.85941493 2082.7792167 2112.21648048
1739.59796198 1530.95269936 1231.06044171 614.71557054] with length 9
last10PointsDistances = [ 2093.66646057 2100.85941493 2082.7792167 2112.21648048 1739.59796198
1530.95269936 1231.06044171 614.71557054 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 2112.21648048, last10PointsDistance.max() = 2112.21648048
------------------------------2015-08-24 19:34:31------------------------------
last5MinsDistances = [ 2458.19652749 2465.92749379 2450.59875285 2498.08479167 2115.80966844
1893.01938873 1636.94812473 1062.34471801 574.70545819] with length 9
last10PointsDistances = [ 2465.92749379 2450.59875285 2498.08479167 2115.80966844 1893.01938873
1636.94812473 1062.34471801 574.70545819 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 2498.08479167, last10PointsDistance.max() = 2498.08479167
------------------------------2015-08-24 19:35:03------------------------------
last5MinsDistances = [ 3118.01844679 3170.3092384 2788.14942929 2563.86799414 2318.8526119
1748.62724665 1219.8991694 686.49061393] with length 8
last10PointsDistances = [ 3118.01844679 3170.3092384 2788.14942929 2563.86799414 2318.8526119
1748.62724665 1219.8991694 686.49061393 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3170.3092384, last10PointsDistance.max() = 3170.3092384
------------------------------2015-08-24 19:35:50------------------------------
last5MinsDistances = [ 3962.30056262 3580.53538707 3355.88077377 3114.67106067 2542.64217948
1994.0669101 1481.72368423 796.07574607] with length 8
last10PointsDistances = [ 3962.30056262 3580.53538707 3355.88077377 3114.67106067 2542.64217948
1994.0669101 1481.72368423 796.07574607 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3962.30056262, last10PointsDistance.max() = 3962.30056262
------------------------------2015-08-24 19:36:37------------------------------
last5MinsDistances = [ 3586.3824233 3361.75658471 3119.97787829 2547.21965293 1997.48724123
1486.57072532 801.22566116 10.25570492] with length 8
last10PointsDistances = [ 3586.3824233 3361.75658471 3119.97787829 2547.21965293 1997.48724123
1486.57072532 801.22566116 10.25570492 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3586.3824233, last10PointsDistance.max() = 3586.3824233
------------------------------2015-08-24 19:37:08------------------------------
last5MinsDistances = [ 3430.48626964 3194.62789215 2628.78233731 2088.33979519 1566.56791921
880.15534167 111.62232785 114.51619472] with length 8
last10PointsDistances = [ 3430.48626964 3194.62789215 2628.78233731 2088.33979519 1566.56791921
880.15534167 111.62232785 114.51619472 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3430.48626964, last10PointsDistance.max() = 3430.48626964
------------------------------2015-08-24 19:37:25------------------------------
last5MinsDistances = [ 3510.34905745 2939.38892868 2388.15619438 1878.37653407 1192.40818608
396.74893767 392.26243675 320.16952706] with length 8
last10PointsDistances = [ 3510.34905745 2939.38892868 2388.15619438 1878.37653407 1192.40818608
396.74893767 392.26243675 320.16952706 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3510.34905745, last10PointsDistance.max() = 3510.34905745
------------------------------2015-08-24 19:38:09------------------------------
last5MinsDistances = [ 3810.08000439 3255.51016165 2748.90932528 2062.67715873 1267.43838362
1262.90028645 1184.57897874 870.69113961] with length 8
last10PointsDistances = [ 3810.08000439 3255.51016165 2748.90932528 2062.67715873 1267.43838362
1262.90028645 1184.57897874 870.69113961 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3810.08000439, last10PointsDistance.max() = 3810.08000439
------------------------------2015-08-24 19:38:41------------------------------
last5MinsDistances = [ 4173.0162387 3664.43967579 2977.95757294 2183.97498666 2179.6654757
2098.21287435 1787.42469485 917.57300827] with length 8
last10PointsDistances = [ 4173.0162387 3664.43967579 2977.95757294 2183.97498666 2179.6654757
2098.21287435 1787.42469485 917.57300827 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4173.0162387, last10PointsDistance.max() = 4173.0162387
------------------------------2015-08-24 19:39:12------------------------------
last5MinsDistances = [ 4601.26215642 3914.96234792 3119.7701882 3115.15969606 3035.99107963
2723.02372933 1852.3667781 939.49921736] with length 8
last10PointsDistances = [ 4601.26215642 3914.96234792 3119.7701882 3115.15969606 3035.99107963
2723.02372933 1852.3667781 939.49921736 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4601.26215642, last10PointsDistance.max() = 4601.26215642
------------------------------2015-08-24 19:39:44------------------------------
last5MinsDistances = [ 4808.81841804 4016.1209147 4011.95321845 3928.66982157 3619.81323896
2750.34297466 1832.77016503 912.36179544] with length 8
last10PointsDistances = [ 4808.81841804 4016.1209147 4011.95321845 3928.66982157 3619.81323896
2750.34297466 1832.77016503 912.36179544 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4808.81841804, last10PointsDistance.max() = 4808.81841804
------------------------------2015-08-24 19:40:16------------------------------
last5MinsDistances = [ 4742.8774615 4739.34981776 4650.82070461 4348.8537875 3485.84972283
2573.01715708 1682.83036409 784.1709274 ] with length 8
last10PointsDistances = [ 4742.8774615 4739.34981776 4650.82070461 4348.8537875 3485.84972283
2573.01715708 1682.83036409 784.1709274 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4742.8774615, last10PointsDistance.max() = 4742.8774615
------------------------------2015-08-24 19:41:18------------------------------
last5MinsDistances = [ 5571.06535551 5477.91000529 5183.9020901 4331.46255727 3429.35467953
2566.81063504 1679.06071509 895.72893842] with length 8
last10PointsDistances = [ 5571.06535551 5477.91000529 5183.9020901 4331.46255727 3429.35467953
2566.81063504 1679.06071509 895.72893842 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5571.06535551, last10PointsDistance.max() = 5571.06535551
------------------------------2015-08-24 19:41:49------------------------------
last5MinsDistances = [ 5461.79324444 5167.88533418 4315.62186809 3413.74730494 2552.0417356
1665.14762532 882.11491403 16.60622805] with length 8
last10PointsDistances = [ 5461.79324444 5167.88533418 4315.62186809 3413.74730494 2552.0417356
1665.14762532 882.11491403 16.60622805 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5461.79324444, last10PointsDistance.max() = 5461.79324444
------------------------------2015-08-24 19:42:06------------------------------
last5MinsDistances = [ 5587.05252098 5291.30526493 4436.08421234 3530.64559544 2657.35130111
1760.68515791 977.00614536 131.76125897 147.42774929] with length 9
last10PointsDistances = [ 5291.30526493 4436.08421234 3530.64559544 2657.35130111 1760.68515791
977.00614536 131.76125897 147.42774929 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 5587.05252098, last10PointsDistance.max() = 5291.30526493
------------------------------2015-08-24 19:42:49------------------------------
last5MinsDistances = [ 4867.19483927 3963.47177691 3091.82175979 2193.58506875 1410.6803487
536.57567036 552.70144969 434.5383107 ] with length 8
last10PointsDistances = [ 4867.19483927 3963.47177691 3091.82175979 2193.58506875 1410.6803487
536.57567036 552.70144969 434.5383107 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4867.19483927, last10PointsDistance.max() = 4867.19483927
------------------------------2015-08-24 19:43:07------------------------------
last5MinsDistances = [ 5159.85756076 4260.09018866 3396.91076868 2502.45046977 1718.59418416
831.71070137 847.01954898 741.79041689 313.17162394] with length 9
last10PointsDistances = [ 4260.09018866 3396.91076868 2502.45046977 1718.59418416 831.71070137
847.01954898 741.79041689 313.17162394 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 5159.85756076, last10PointsDistance.max() = 4260.09018866
------------------------------2015-08-24 19:44:21------------------------------
last5MinsDistances = [ 4100.33014451 3321.74350389 2449.40638948 2465.08477697 2349.75000194
1915.74533422 1620.33510462] with length 7
last10PointsDistances = [ 5004.56254467 4100.33014451 3321.74350389 2449.40638948 2465.08477697
2349.75000194 1915.74533422 1620.33510462 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 4100.33014451, last10PointsDistance.max() = 5004.56254467
------------------------------2015-08-24 19:44:53------------------------------
last5MinsDistances = [ 3933.34281762 3068.97186086 3084.82516133 2966.10115295 2533.50016114
2242.80388587 626.49397129] with length 7
last10PointsDistances = [ 4708.0453273 3933.34281762 3068.97186086 3084.82516133 2966.10115295
2533.50016114 2242.80388587 626.49397129 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 3933.34281762, last10PointsDistance.max() = 4708.0453273
------------------------------2015-08-24 19:45:28------------------------------
last5MinsDistances = [ 3350.94624444 3366.85965658 3246.94387996 2815.03990291 2526.05626377
911.2835794 284.81097359] with length 7
last10PointsDistances = [ 4212.01923721 3350.94624444 3366.85965658 3246.94387996 2815.03990291
2526.05626377 911.2835794 284.81097359 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 3366.85965658, last10PointsDistance.max() = 4212.01923721
------------------------------2015-08-24 19:45:39------------------------------
last5MinsDistances = [ 3348.038661 3363.94971616 3244.07810573 2812.14706733 2523.08978852
908.19136273 281.70769893 3.35198097] with length 8
last10PointsDistances = [ 3348.038661 3363.94971616 3244.07810573 2812.14706733 2523.08978852
908.19136273 281.70769893 3.35198097 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3363.94971616, last10PointsDistance.max() = 3363.94971616
------------------------------2015-08-24 19:46:28------------------------------
last5MinsDistances = [ 3458.02590518 3337.56904931 2906.01318028 2617.87715459 1004.24344529
377.90220585 93.35131687 96.5592567 ] with length 8
last10PointsDistances = [ 3458.02590518 3337.56904931 2906.01318028 2617.87715459 1004.24344529
377.90220585 93.35131687 96.5592567 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3458.02590518, last10PointsDistance.max() = 3458.02590518
------------------------------2015-08-24 19:46:59------------------------------
last5MinsDistances = [ 3755.33096659 3324.60821748 3038.10535006 1425.51011031 799.0652947
514.25517026 517.36659645 421.29614438] with length 8
last10PointsDistances = [ 3755.33096659 3324.60821748 3038.10535006 1425.51011031 799.0652947
514.25517026 517.36659645 421.29614438 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3755.33096659, last10PointsDistance.max() = 3755.33096659
------------------------------2015-08-24 19:47:42------------------------------
last5MinsDistances = [ 4285.38158275 4001.07820513 2389.37664818 1762.88269956 1478.10723709
1481.19171954 1385.28670924 964.01437755] with length 8
last10PointsDistances = [ 4285.38158275 4001.07820513 2389.37664818 1762.88269956 1478.10723709
1481.19171954 1385.28670924 964.01437755 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4285.38158275, last10PointsDistance.max() = 4285.38158275
------------------------------2015-08-24 19:48:34------------------------------
last5MinsDistances = [ 3919.40995438 3292.9992424 3008.35351185 3011.41303983 2915.71430204
2494.56239448 1530.73785995] with length 7
last10PointsDistances = [ 5531.68868061 3919.40995438 3292.9992424 3008.35351185 3011.41303983
2915.71430204 2494.56239448 1530.73785995 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 3919.40995438, last10PointsDistance.max() = 5531.68868061
------------------------------2015-08-24 19:49:18------------------------------
last5MinsDistances = [ 4866.94943613 4240.54682533 3955.90277607 3958.96249232 3863.2559408
3442.08545242 2478.18649831 947.54949584] with length 8
last10PointsDistances = [ 4866.94943613 4240.54682533 3955.90277607 3958.96249232 3863.2559408
3442.08545242 2478.18649831 947.54949584 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4866.94943613, last10PointsDistance.max() = 4866.94943613
------------------------------2015-08-24 19:49:40------------------------------
last5MinsDistances = [ 4451.6340148 4166.86080078 4169.94545189 4074.01413712 3652.72149396
2688.75376077 1160.41997473 224.09196604] with length 8
last10PointsDistances = [ 4451.6340148 4166.86080078 4169.94545189 4074.01413712 3652.72149396
2688.75376077 1160.41997473 224.09196604 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4451.6340148, last10PointsDistance.max() = 4451.6340148
------------------------------2015-08-24 19:50:27------------------------------
last5MinsDistances = [ 4155.72635166 4158.82164682 4062.80255556 3641.51120537 2677.70416029
1151.33931632 227.48450258 35.87734096] with length 8
last10PointsDistances = [ 4155.72635166 4158.82164682 4062.80255556 3641.51120537 2677.70416029
1151.33931632 227.48450258 35.87734096 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4158.82164682, last10PointsDistance.max() = 4158.82164682
------------------------------2015-08-24 19:50:58------------------------------
last5MinsDistances = [ 4191.11542306 3769.8243768 2806.01824733 1279.38749204 346.31277007
122.28630479 128.31434468] with length 7
last10PointsDistances = [ 4287.13563531 4191.11542306 3769.8243768 2806.01824733 1279.38749204
346.31277007 122.28630479 128.31434468 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 4191.11542306, last10PointsDistance.max() = 4287.13563531
------------------------------2015-08-24 19:52:03------------------------------
last5MinsDistances = [ 2739.14140776 1209.10772695 263.16120612 67.68333164 100.50961373
105.17173198] with length 6
last10PointsDistances = [ 4124.39034146 3703.14619685 2739.14140776 1209.10772695 263.16120612
67.68333164 100.50961373 105.17173198 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 2739.14140776, last10PointsDistance.max() = 4124.39034146
------------------------------2015-08-24 19:52:34------------------------------
last5MinsDistances = [ 2742.20083371 1212.1744608 266.23740219 69.79947089 102.19333281
103.03042787 3.07665076] with length 7
last10PointsDistances = [ 3706.20605378 2742.20083371 1212.1744608 266.23740219 69.79947089
102.19333281 103.03042787 3.07665076 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 2742.20083371, last10PointsDistance.max() = 3706.20605378
------------------------------2015-08-24 19:53:05------------------------------
last5MinsDistances = [ 1378.26604861 440.53693827 218.58209246 227.80424805 99.60641968
182.890437 179.99011546] with length 7
last10PointsDistances = [ 2905.41252586 1378.26604861 440.53693827 218.58209246 227.80424805
99.60641968 182.890437 179.99011546 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 1378.26604861, last10PointsDistance.max() = 2905.41252586
------------------------------2015-08-24 19:53:36------------------------------
last5MinsDistances = [ 435.84963575 213.32546189 221.68918703 93.38043373 179.56561828
176.70843662 7.87962183] with length 7
last10PointsDistances = [ 1372.52002916 435.84963575 213.32546189 221.68918703 93.38043373
179.56561828 176.70843662 7.87962183 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 435.849635747, last10PointsDistance.max() = 1372.52002916
------------------------------2015-08-24 19:53:55------------------------------
last5MinsDistances = [ 433.55388107 211.801928 221.47254745 93.44131717 175.72852109
172.8268034 7.16674058 8.21429703] with length 8
last10PointsDistances = [ 433.55388107 211.801928 221.47254745 93.44131717 175.72852109
172.8268034 7.16674058 8.21429703 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 433.553881073, last10PointsDistance.max() = 433.553881073
------------------------------2015-08-24 19:54:24------------------------------
last5MinsDistances = [ 160.43076641 190.71558217 130.33020711 93.46935053 91.01419303
151.58396183 152.41690408 145.3328191 ] with length 8
last10PointsDistances = [ 160.43076641 190.71558217 130.33020711 93.46935053 91.01419303
151.58396183 152.41690408 145.3328191 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 190.715582171, last10PointsDistance.max() = 190.715582171
------------------------------2015-08-24 19:55:30------------------------------
last5MinsDistances = [ 355.59191708 280.26714351 279.92913509 366.81707791 369.85430209
361.88690236 226.89589371] with length 7
last10PointsDistances = [ 373.31351182 355.59191708 280.26714351 279.92913509 366.81707791
369.85430209 361.88690236 226.89589371 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 369.854302092, last10PointsDistance.max() = 373.313511824
------------------------------2015-08-24 19:56:16------------------------------
last5MinsDistances = [ 453.86789252 453.43465326 520.81221125 525.11252354 516.91587359
393.66581787 173.91068124] with length 7
last10PointsDistances = [ 523.94081827 453.86789252 453.43465326 520.81221125 525.11252354
516.91587359 393.66581787 173.91068124 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 525.112523538, last10PointsDistance.max() = 525.112523538
------------------------------2015-08-24 19:56:30------------------------------
last5MinsDistances = [ 476.2268711 475.66413223 535.0866211 539.70676539 531.49355896
412.55031029 197.69603415 29.83050628] with length 8
last10PointsDistances = [ 476.2268711 475.66413223 535.0866211 539.70676539 531.49355896
412.55031029 197.69603415 29.83050628 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 539.70676539, last10PointsDistance.max() = 539.70676539
------------------------------2015-08-24 19:57:17------------------------------
last5MinsDistances = [ 626.77156385 671.18143567 676.51593466 668.34263283 559.12733128
350.84794015 180.28120371 153.56805427] with length 8
last10PointsDistances = [ 626.77156385 671.18143567 676.51593466 668.34263283 559.12733128
350.84794015 180.28120371 153.56805427 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 676.515934657, last10PointsDistance.max() = 676.515934657
------------------------------2015-08-24 19:57:34------------------------------
last5MinsDistances = [ 634.77101871 675.16513621 680.63221671 672.48005487 565.67464129
360.31149269 191.56891768 163.99863908 16.13506747] with length 9
last10PointsDistances = [ 675.16513621 680.63221671 672.48005487 565.67464129 360.31149269
191.56891768 163.99863908 16.13506747 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 680.632216707, last10PointsDistance.max() = 680.632216707
------------------------------2015-08-24 19:58:19------------------------------
last5MinsDistances = [ 691.8983429 683.74186103 576.32668774 369.75386535 199.89598376
172.84525071 19.99378851 11.65015067] with length 8
last10PointsDistances = [ 691.8983429 683.74186103 576.32668774 369.75386535 199.89598376
172.84525071 19.99378851 11.65015067 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 691.898342904, last10PointsDistance.max() = 691.898342904
------------------------------2015-08-24 19:58:50------------------------------
last5MinsDistances = [ 909.36248064 816.38422809 621.11764758 454.05703469 426.35135723
274.23735048 262.49502555 254.38194675] with length 8
last10PointsDistances = [ 909.36248064 816.38422809 621.11764758 454.05703469 426.35135723
274.23735048 262.49502555 254.38194675 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 909.362480642, last10PointsDistance.max() = 909.362480642
------------------------------2015-08-24 19:59:21------------------------------
last5MinsDistances = [ 818.47024483 623.89418223 457.19167633 429.39197703 277.51611682
265.62328594 257.63036939 4.89287112] with length 8
last10PointsDistances = [ 818.47024483 623.89418223 457.19167633 429.39197703 277.51611682
265.62328594 257.63036939 4.89287112 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 818.470244834, last10PointsDistance.max() = 818.470244834
------------------------------2015-08-24 19:59:52------------------------------
last5MinsDistances = [ 563.38455161 390.22648115 365.74774464 214.35187975 207.94687259
197.09955664 111.90566255 116.79749798] with length 8
last10PointsDistances = [ 563.38455161 390.22648115 365.74774464 214.35187975 207.94687259
197.09955664 111.90566255 116.79749798 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 563.384551612, last10PointsDistance.max() = 563.384551612
------------------------------2015-08-24 20:00:23------------------------------
last5MinsDistances = [ 752.51303699 621.20978484 591.55052856 474.20418412 458.16529581
456.90606986 299.34765325 294.76183283 405.57408046] with length 9
last10PointsDistances = [ 621.20978484 591.55052856 474.20418412 458.16529581 456.90606986
299.34765325 294.76183283 405.57408046 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 752.513036993, last10PointsDistance.max() = 621.209784842
------------------------------2015-08-24 20:00:32------------------------------
last5MinsDistances = [ 618.02648384 588.40440193 472.37548274 456.31137158 455.23476838
301.69898446 297.15457254 407.18449868 7.40734504] with length 9
last10PointsDistances = [ 588.40440193 472.37548274 456.31137158 455.23476838 301.69898446
297.15457254 407.18449868 7.40734504 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 618.026483845, last10PointsDistance.max() = 588.404401934
------------------------------2015-08-24 20:01:50------------------------------
last5MinsDistances = [ 474.84105897 458.7700213 457.74826424 304.95577591 300.41427224
410.37063501 9.40638373 3.29369344] with length 8
last10PointsDistances = [ 474.84105897 458.7700213 457.74826424 304.95577591 300.41427224
410.37063501 9.40638373 3.29369344 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 474.841058967, last10PointsDistance.max() = 474.841058967
------------------------------2015-08-24 20:02:21------------------------------
last5MinsDistances = [ 452.61670909 452.24454214 313.9213927 309.53926833 416.45734047
35.10113575 27.71307549 26.09361619] with length 8
last10PointsDistances = [ 452.61670909 452.24454214 313.9213927 309.53926833 416.45734047
35.10113575 27.71307549 26.09361619 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 452.616709093, last10PointsDistance.max() = 452.616709093
------------------------------2015-08-24 20:02:52------------------------------
last5MinsDistances = [ 452.22764746 316.80632359 312.45568132 418.75975787 40.40934659
33.02776466 31.35093995 5.32520781] with length 8
last10PointsDistances = [ 452.22764746 316.80632359 312.45568132 418.75975787 40.40934659
33.02776466 31.35093995 5.32520781 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 452.227647464, last10PointsDistance.max() = 452.227647464
------------------------------2015-08-24 20:03:24------------------------------
last5MinsDistances = [ 317.23646206 312.87394787 419.39722949 39.16495511 31.80850716
30.02738274 4.34580726 1.73101287] with length 8
last10PointsDistances = [ 317.23646206 312.87394787 419.39722949 39.16495511 31.80850716
30.02738274 4.34580726 1.73101287 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 419.397229494, last10PointsDistance.max() = 419.397229494
------------------------------2015-08-24 20:03:57------------------------------
last5MinsDistances = [ 317.48579264 421.64684331 56.05051877 48.64413171 47.14599823
21.06241697 15.90323262 17.41140322] with length 8
last10PointsDistances = [ 317.48579264 421.64684331 56.05051877 48.64413171 47.14599823
21.06241697 15.90323262 17.41140322 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 421.646843306, last10PointsDistance.max() = 421.646843306
------------------------------2015-08-24 20:04:31------------------------------
last5MinsDistances = [ 419.11413374 47.98426717 40.57858631 39.08138761 13.01262428
7.96488593 9.57718988 8.06964293] with length 8
last10PointsDistances = [ 419.11413374 47.98426717 40.57858631 39.08138761 13.01262428
7.96488593 9.57718988 8.06964293 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 419.114133737, last10PointsDistance.max() = 419.114133737
------------------------------2015-08-24 20:05:02------------------------------
last5MinsDistances = [ 43.86152334 36.50273492 34.7182764 8.90229178 3.66257756
4.69682512 12.97092014 5.67317209] with length 8
last10PointsDistances = [ 43.86152334 36.50273492 34.7182764 8.90229178 3.66257756
4.69682512 12.97092014 5.67317209 0. ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 43.8615233428, last10PointsDistance.max() = 43.8615233428
last5MinPoints.median = 282.5 (Int64Index([279, 280, 281, 282, 283, 284, 285, 286], dtype='int64')), last10Points_df = 283.0 (Int64Index([279, 280, 281, 282, 283, 284, 285, 286, 287], dtype='int64')), sel index = 282
Appending last_trip_end_point filter time
formatted_time 2015-08-24 20:02:21
key background/location
mAccuracy 36
mAltitude 0
mBearing 0
mDistance 0
mElapsedRealtimeNanos 251935308000000
mExtras NaN
mHasAccuracy True
mHasAltitude False
mHasBearing False
mHasSpeed False
mInitialBearing 0
mIsFromMockProvider False
mLat1 0
mLat2 0
mLatitude 37.39088
mLon1 0
mLon2 0
mLongitude -122.0863
mProvider fused
mResults [0, 0]
mSpeed 0
mTime 1440471741808
platform android
read_ts 0
type message
write_ts 1440471742199
distance 26.09362
speed 0.8279482
Name: 282, dtype: object with index 282
Found trip end at 2015-08-24 20:02:21
------------------------------2015-08-24 20:05:34------------------------------
Setting new trip start point AttrDict({u'mProvider': u'fused', 'speed': 0.10959522457929963, 'formatted_time': Timestamp('2015-08-24 20:05:34'), u'mHasAccuracy': True, u'mHasAltitude': False, u'write_ts': 1440471935244, u'mLat1': 0, u'mDistance': 0, u'mLat2': 0, u'platform': u'android', u'mAccuracy': 36.0, u'mLon1': 0, u'mLon2': 0, u'type': u'message', u'mLatitude': 37.3909234, u'mAltitude': 0.0, u'mExtras': nan, u'mSpeed': 0, u'key': u'background/location', u'mInitialBearing': 0, u'mHasSpeed': False, 'distance': 3.4919230455456445, u'read_ts': 0, u'mElapsedRealtimeNanos': 252128226000000, u'mResults': [0, 0], 'idx': 288, u'mBearing': 0, u'mLongitude': -122.0862768, u'mIsFromMockProvider': False, u'filter': u'time', u'mTime': 1440471934726, u'mHasBearing': False}) with idx 288
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-24 20:06:04------------------------------
last5MinsDistances = [ 1.30173034] with length 1
last10PointsDistances = [ 1.30173034 0. ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
In [67]:
ipy.inline_map(lo.get_map(tom_points_time_df_aug_24))
Out[67]:
In [68]:
ipy.inline_map(lo.get_map(pd.DataFrame(tom_segment_points_aug_24)))
Out[68]:
In [69]:
[pt.formatted_time for pt in tom_segment_points_aug_24[0:2]]
Out[69]:
[Timestamp('2015-08-24 08:07:38'), Timestamp('2015-08-24 08:09:11')]
In [70]:
def make_trip(startDict, endDict):
start = ad.AttrDict(startDict)
end = ad.AttrDict(endDict)
print "-" * 20 + str(start.formatted_time) + " -> " + str(end.formatted_time) + "-" * 20
if pf.calDistance(start, end) < 100:
print "Skipping trip because all points are in a cluster"
return None
trip = ad.AttrDict({'user_id': tomUUID, 'loc_filter': 'time',
'start_ts': start.mTime, 'end_ts': end.mTime,
'start_time': start.formatted_time, 'end_time': end.formatted_time})
return trip
In [71]:
tom_trips_list_aug_24 = [make_trip(s1, s2) for s1, s2 in zip(tom_segment_points_aug_24, tom_segment_points_aug_24[1:])]
tom_trips_list_aug_24 = [trip for trip in tom_trips_list_aug_24 if trip is not None]
--------------------2015-08-24 08:07:38 -> 2015-08-24 08:09:11--------------------
Skipping trip because all points are in a cluster
--------------------2015-08-24 08:09:11 -> 2015-08-24 08:28:45--------------------
--------------------2015-08-24 08:28:45 -> 2015-08-24 09:07:19--------------------
--------------------2015-08-24 09:07:19 -> 2015-08-24 09:48:42--------------------
--------------------2015-08-24 09:48:42 -> 2015-08-24 19:01:09--------------------
--------------------2015-08-24 19:01:09 -> 2015-08-24 20:02:21--------------------
In [72]:
trip_section_map = []
for trip in tom_trips_list_aug_24:
trip_section_map.append((trip, ss.segment_into_sections(trip)))
At 2015-08-24 08:09:58, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:10:35, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:11:37, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:12:19, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:17:26, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:12:19
At 2015-08-24 08:18:05, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 08:18:41, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:18:59, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:19:24, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:20:25, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 08:20:55, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:21:30, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:22:01, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:22:32, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:23:03, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:23:35, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:24:14, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:24:37, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:25:09, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:26:05, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:27:08, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 08:27:50, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 08:27:08
At 2015-08-24 08:28:15, retained existing activity Activities.ON_FOOT because of no change
Detected trip end! Ending section at 2015-08-24 08:28:45
At 2015-08-24 08:29:12, retained existing activity Activities.UNKNOWN because of no change
At 2015-08-24 08:30:03, found new activity Activities.ON_FOOT compared to current Activities.UNKNOWN - creating new section with start_time 2015-08-24 08:29:12
At 2015-08-24 08:30:18, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:30:50, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:31:50, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:33:56, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:34:30, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:33:56
At 2015-08-24 08:35:06, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:35:45, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 08:35:06
At 2015-08-24 08:36:09, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:36:58, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:36:09
At 2015-08-24 08:38:02, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 08:38:53, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 08:38:02
At 2015-08-24 08:39:18, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:39:49, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:40:23, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:40:54, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:41:27, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:42:24, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:43:21, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:44:29, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:45:04, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:45:34, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:46:06, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:47:05, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:47:41, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:48:11, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:48:43, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:49:40, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:50:08, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 08:51:12, found new activity Activities.IN_VEHICLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:50:08
At 2015-08-24 08:51:47, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:52:19, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:52:53, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:53:19, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:53:50, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:54:33, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:55:05, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:55:36, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:56:07, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:56:41, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:57:11, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:57:49, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:58:26, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:58:52, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 08:59:24, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:00:24, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:00:59, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:01:31, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:02:28, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:03:10, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-24 09:02:28
At 2015-08-24 09:03:35, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:04:06, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:04:38, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:05:10, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:05:45, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:06:16, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:06:48, retained existing activity Activities.ON_FOOT because of no change
Detected trip end! Ending section at 2015-08-24 09:07:19
At 2015-08-24 09:07:45, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:08:52, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:09:19, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:09:50, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:13:09, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:13:38, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:14:33, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:15:09, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:16:12, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:16:43, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:17:15, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:18:13, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:18:48, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:19:18, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:19:50, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:20:21, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 09:21:10, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:21:28, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:22:20, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:22:58, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:23:56, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:24:32, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 09:25:25, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-24 09:24:32
At 2015-08-24 09:26:06, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:27:06, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 09:26:06
At 2015-08-24 09:27:13, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:28:05, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 09:27:13
At 2015-08-24 09:28:34, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:29:00, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:29:58, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:30:40, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:31:30, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:32:32, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:33:38, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:34:18, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:34:57, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:35:43, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:36:22, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:37:03, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 09:36:22
At 2015-08-24 09:37:47, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:38:19, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:38:50, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:39:21, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:39:52, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:40:24, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:40:57, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:41:29, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:42:00, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:42:31, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:43:02, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:43:32, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:44:03, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 09:44:50, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 09:44:03
At 2015-08-24 09:45:32, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 09:46:32, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 09:45:32
At 2015-08-24 09:47:15, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 09:46:32
At 2015-08-24 09:47:40, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 09:48:12, retained existing activity Activities.ON_FOOT because of no change
Detected trip end! Ending section at 2015-08-24 09:48:42
At 2015-08-24 09:49:08, retained existing activity Activities.STILL because of no change
At 2015-08-24 09:50:01, retained existing activity Activities.STILL because of no change
At 2015-08-24 09:50:46, retained existing activity Activities.STILL because of no change
At 2015-08-24 09:51:17, retained existing activity Activities.STILL because of no change
At 2015-08-24 09:51:48, retained existing activity Activities.STILL because of no change
At 2015-08-24 18:49:32, found new activity Activities.ON_BICYCLE compared to current Activities.STILL - creating new section with start_time 2015-08-24 09:51:48
At 2015-08-24 18:50:31, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 18:51:23, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:52:07, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:52:39, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:53:10, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:53:41, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:54:12, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:54:44, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:55:15, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:55:46, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:56:17, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:56:48, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:57:20, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:57:50, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:58:28, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:59:04, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 18:59:59, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 18:59:04
At 2015-08-24 19:00:48, retained existing activity Activities.ON_FOOT because of low confidence
Detected trip end! Ending section at 2015-08-24 19:01:09
At 2015-08-24 19:01:34, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:02:10, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:02:43, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:03:14, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:03:45, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:04:17, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:04:48, retained existing activity Activities.STILL because of no change
At 2015-08-24 19:16:00, found new activity Activities.IN_VEHICLE compared to current Activities.STILL - creating new section with start_time 2015-08-24 19:04:48
At 2015-08-24 19:17:08, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:17:42, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:18:40, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:19:32, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:20:26, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:20:51, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:21:22, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:22:25, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:22:57, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:23:30, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:24:22, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:25:21, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:26:14, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:26:56, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-24 19:26:14
At 2015-08-24 19:27:48, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:28:16, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:29:05, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:29:21, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:30:02, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 19:31:03, found new activity Activities.IN_VEHICLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 19:30:02
At 2015-08-24 19:31:48, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:32:21, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:32:53, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:33:27, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:34:00, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:34:32, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:35:03, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:36:06, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:36:37, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:37:34, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:38:10, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:38:42, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:39:13, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:39:45, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:40:16, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:40:47, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:41:19, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:42:15, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:43:07, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:43:50, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:44:22, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:44:54, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:45:54, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:46:56, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:47:30, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:48:02, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:48:35, retained existing activity Activities.IN_VEHICLE because of no change
At 2015-08-24 19:49:38, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:50:11, retained existing activity Activities.IN_VEHICLE because of low confidence
At 2015-08-24 19:50:46, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-24 19:50:11
At 2015-08-24 19:51:32, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:52:04, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:52:43, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:53:06, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 19:53:55, retained existing activity Activities.ON_FOOT because of low confidence
At 2015-08-24 19:54:41, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 19:53:55
At 2015-08-24 19:55:15, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 19:55:46, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 19:56:43, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 19:57:44, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 19:58:47, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 19:59:47, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 19:59:53, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 20:00:24, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 20:01:18, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 20:02:17, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 20:01:18
Detected trip end! Ending section at 2015-08-24 20:02:21
In [73]:
section_map_list_24 = lo.get_map_list_after_segmentation(trip_section_map,
cso.BoxplotOutlier(ignore_zeros=True),
cjs.SmoothZigzag())
DEBUG:root:==================== 2015-08-24 08:09:11 -> 2015-08-24 08:28:45 ====================
DEBUG:root:-------------------- 0: 2015-08-24 08:09:11 -> 2015-08-24 08:12:19 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 29) to (6, 29)
DEBUG:root:quartile values are 0.25 0.081817
0.75 0.135929
Name: speed, dtype: float64
DEBUG:root:iqr 0.0541116528477
DEBUG:root:For cluster 0 - 5, distance = 9.28386428198, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 5, 9.28386428198)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': Timestamp('2015-08-24 08:09:11'), 'end_ts': 1440429139321, 'start_ts': 1440428951154, 'end_time': '2015-08-24 08:12:19', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (6, 29), formatted_time.head() = 0 2015-08-24 08:09:42
1 2015-08-24 08:10:13
2 2015-08-24 08:10:44
3 2015-08-24 08:11:16
4 2015-08-24 08:11:46
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 08:12:19 -> 2015-08-24 08:27:08 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (21, 29) to (21, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 0.552686
0.75 4.060010
Name: speed, dtype: float64
DEBUG:root:iqr 3.50732444849
DEBUG:root:For cluster 0 - 10, distance = 488.590306855, is_cluster = False
DEBUG:root:For cluster 10 - 12, distance = 4.25030407674, is_cluster = True
DEBUG:root:For cluster 12 - 20, distance = 456.158953746, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 10, 488.590306855), Segment(10, 12, 4.25030407674), Segment(12, 20, 456.158953746)] with size 3
DEBUG:root:shortest_non_cluster_segment = 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 1: Segment(10, 12, 4.25030407674), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = 0
DEBUG:root:Processing segment 0: Segment(0, 10, 488.590306855), expecting state Segment_State.GOOD
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(10, 12, 4.25030407674)]
DEBUG:root:after setting values, outlier_mask = [10 11]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
10 37.395729 -122.077811 40.5 2015-08-24 08:21:30
11 37.395691 -122.077806 37.5 2015-08-24 08:22:01
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 0.557972
0.75 3.964425
Name: speed, dtype: float64
DEBUG:root:iqr 3.40645243405
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 12, 19), 'end_ts': 1440430028890, 'start_ts': 1440429139321, 'end_time': '2015-08-24 08:27:08', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (19, 29), formatted_time.head() = 0 2015-08-24 08:17:10
1 2015-08-24 08:17:10
2 2015-08-24 08:17:36
3 2015-08-24 08:17:51
4 2015-08-24 08:18:21
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 08:27:08 -> 2015-08-24 08:28:45 --------------------
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 1.066981
0.75 1.197519
Name: speed, dtype: float64
DEBUG:root:iqr 0.130538564437
DEBUG:root:For cluster 0 - 2, distance = 39.1401348714, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 2, 39.1401348714)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 27, 8), 'end_ts': 1440430125903, 'start_ts': 1440430028890, 'end_time': Timestamp('2015-08-24 08:28:45'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-24 08:27:12
1 2015-08-24 08:27:43
2 2015-08-24 08:28:14
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-24 08:28:45 -> 2015-08-24 09:07:19 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440428951154}}, {'data.mTime': {'$lt': 1440430125903}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440430125903}}, {'data.mTime': {'$lt': 1440432439533}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-24 08:28:45 -> 2015-08-24 08:29:12 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (0, 29) to (0, 0)
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...
INFO:root:Found empty df! skipping...
DEBUG:root:-------------------- 1: 2015-08-24 08:29:12 -> 2015-08-24 08:33:56 --------------------
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:quartile values are 0.25 1.320381
0.75 3.552359
Name: speed, dtype: float64
DEBUG:root:iqr 2.23197847681
DEBUG:root:For cluster 0 - 7, distance = 523.516155725, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 7, 523.516155725)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 29, 12), 'end_ts': 1440430436086, 'start_ts': 1440430152748, 'end_time': '2015-08-24 08:33:56', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (8, 29), formatted_time.head() = 0 2015-08-24 08:29:16
1 2015-08-24 08:29:47
2 2015-08-24 08:30:18
3 2015-08-24 08:30:49
4 2015-08-24 08:31:20
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 08:33:56 -> 2015-08-24 08:35:06 --------------------
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.769881
0.75 3.935865
Name: speed, dtype: float64
DEBUG:root:iqr 0.165984396444
DEBUG:root:For cluster 0 - 2, distance = 123.599952855, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 2, 123.599952855)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 33, 56), 'end_ts': 1440430506966, 'start_ts': 1440430436086, 'end_time': '2015-08-24 08:35:06', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-24 08:34:04
1 2015-08-24 08:34:35
2 2015-08-24 08:35:06
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-24 08:35:06 -> 2015-08-24 08:36:09 --------------------
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.203835
0.75 0.203835
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('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 35, 6), 'end_ts': 1440430569073, 'start_ts': 1440430506966, 'end_time': '2015-08-24 08:36:09', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-24 08:35:37
1 2015-08-24 08:36:08
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-24 08:36:09 -> 2015-08-24 08:38:02 --------------------
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 1.820176
0.75 4.544750
Name: speed, dtype: float64
DEBUG:root:iqr 2.72457370072
DEBUG:root:For cluster 0 - 2, distance = 180.436334651, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 2, 180.436334651)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 36, 9), 'end_ts': 1440430682168, 'start_ts': 1440430569073, 'end_time': '2015-08-24 08:38:02', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-24 08:36:39
1 2015-08-24 08:37:10
2 2015-08-24 08:37:44
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 5: 2015-08-24 08:38:02 -> 2015-08-24 08:50:08 --------------------
DEBUG:root:filtering points Int64Index([24, 25], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (23, 29) to (21, 29)
DEBUG:root:quartile values are 0.25 0.295478
0.75 6.132777
Name: speed, dtype: float64
DEBUG:root:iqr 5.83729874116
DEBUG:root:For cluster 0 - 20, distance = 6.76283857651, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 20, 6.76283857651)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 38, 2), 'end_ts': 1440431408887, 'start_ts': 1440430682168, 'end_time': '2015-08-24 08:50:08', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (21, 29), formatted_time.head() = 0 2015-08-24 08:38:14
1 2015-08-24 08:38:46
2 2015-08-24 08:39:18
3 2015-08-24 08:39:49
4 2015-08-24 08:40:22
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 6: 2015-08-24 08:50:08 -> 2015-08-24 09:02:28 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (22, 29) to (22, 29)
DEBUG:root:quartile values are 0.25 13.963650
0.75 34.248592
Name: speed, dtype: float64
DEBUG:root:iqr 20.2849418085
DEBUG:root:For cluster 0 - 21, distance = 16846.1018138, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 21, 16846.1018138)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 8, 50, 8), 'end_ts': 1440432148691, 'start_ts': 1440431408887, 'end_time': '2015-08-24 09:02:28', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (22, 29), formatted_time.head() = 0 2015-08-24 08:50:13
1 2015-08-24 08:50:44
2 2015-08-24 08:51:15
3 2015-08-24 08:51:47
4 2015-08-24 08:52:18
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 7: 2015-08-24 09:02:28 -> 2015-08-24 09:07:19 --------------------
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.658704
0.75 1.483537
Name: speed, dtype: float64
DEBUG:root:iqr 0.824832661452
DEBUG:root:For cluster 0 - 4, distance = 47.8189116097, is_cluster = True
DEBUG:root:For cluster 4 - 8, distance = 61.3135524169, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 4, 47.8189116097), Segment(4, 8, 61.3135524169)] with size 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 0: Segment(0, 4, 47.8189116097), 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, 4, 47.8189116097)]
DEBUG:root:after setting values, outlier_mask = [0 1 2 3]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
0 37.330480 -121.903009 40.500 2015-08-24 09:02:32
1 37.330845 -121.902722 42.000 2015-08-24 09:03:03
2 37.330845 -121.902722 83.474 2015-08-24 09:03:31
3 37.330845 -121.902722 131.211 2015-08-24 09:04:03
DEBUG:root:quartile values are 0.25 0.438924
0.75 1.005464
Name: speed, dtype: float64
DEBUG:root:iqr 0.566539994463
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 2, 28), 'end_ts': 1440432439533, 'start_ts': 1440432148691, 'end_time': Timestamp('2015-08-24 09:07:19'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (5, 29), formatted_time.head() = 4 2015-08-24 09:04:38
5 2015-08-24 09:05:10
6 2015-08-24 09:05:45
7 2015-08-24 09:06:17
8 2015-08-24 09:06:48
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-24 09:07:19 -> 2015-08-24 09:48:42 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440432439533}}, {'data.mTime': {'$lt': 1440434922747}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-24 09:07:19 -> 2015-08-24 09:24:32 --------------------
DEBUG:root:filtering points Int64Index([14, 26], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (32, 29) to (30, 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.698301
0.75 13.694391
Name: speed, dtype: float64
DEBUG:root:iqr 12.9960895392
DEBUG:root:For cluster 0 - 29, distance = 6230.98755341, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 29, 6230.98755341)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': Timestamp('2015-08-24 09:07:19'), 'end_ts': 1440433472688, 'start_ts': 1440432439533, 'end_time': '2015-08-24 09:24:32', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (30, 29), formatted_time.head() = 0 2015-08-24 09:07:26
1 2015-08-24 09:07:45
2 2015-08-24 09:08:17
3 2015-08-24 09:08:47
4 2015-08-24 09:09:18
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 09:24:32 -> 2015-08-24 09:26:06 --------------------
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 0.549224
0.75 1.308483
Name: speed, dtype: float64
DEBUG:root:iqr 0.759258840715
DEBUG:root:For cluster 0 - 2, distance = 5.24793486315, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 2, 5.24793486315)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 24, 32), 'end_ts': 1440433566827, 'start_ts': 1440433472688, 'end_time': '2015-08-24 09:26:06', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-24 09:25:04
1 2015-08-24 09:25:35
2 2015-08-24 09:26:06
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 09:26:06 -> 2015-08-24 09:27:13 --------------------
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 2.155253
0.75 2.155253
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('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 26, 6), 'end_ts': 1440433633865, 'start_ts': 1440433566827, 'end_time': '2015-08-24 09:27:13', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-24 09:26:38
1 2015-08-24 09:27:09
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-24 09:27:13 -> 2015-08-24 09:36:22 --------------------
DEBUG:root:filtering points Int64Index([43], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (18, 29) to (17, 29)
DEBUG:root:quartile values are 0.25 0.291733
0.75 2.648584
Name: speed, dtype: float64
DEBUG:root:iqr 2.3568510187
DEBUG:root:For cluster 0 - 16, distance = 16.0286466559, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 16, 16.0286466559)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 27, 13), 'end_ts': 1440434182285, 'start_ts': 1440433633865, 'end_time': '2015-08-24 09:36:22', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (17, 29), formatted_time.head() = 0 2015-08-24 09:27:40
1 2015-08-24 09:28:16
2 2015-08-24 09:28:28
3 2015-08-24 09:29:00
4 2015-08-24 09:29:31
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-24 09:36:22 -> 2015-08-24 09:44:03 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (15, 29) to (15, 29)
DEBUG:root:quartile values are 0.25 1.210395
0.75 5.430995
Name: speed, dtype: float64
DEBUG:root:iqr 4.22060036397
DEBUG:root:For cluster 0 - 14, distance = 1158.94561545, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 14, 1158.94561545)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 36, 22), 'end_ts': 1440434643757, 'start_ts': 1440434182285, 'end_time': '2015-08-24 09:44:03', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (15, 29), formatted_time.head() = 0 2015-08-24 09:36:45
1 2015-08-24 09:37:15
2 2015-08-24 09:37:47
3 2015-08-24 09:38:18
4 2015-08-24 09:38:49
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 5: 2015-08-24 09:44:03 -> 2015-08-24 09:45:32 --------------------
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.259446
0.75 0.259446
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('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 44, 3), 'end_ts': 1440434732265, 'start_ts': 1440434643757, 'end_time': '2015-08-24 09:45:32', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-24 09:44:34
1 2015-08-24 09:45:05
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 6: 2015-08-24 09:45:32 -> 2015-08-24 09:46:32 --------------------
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 5.39298
0.75 5.39298
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('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 45, 32), 'end_ts': 1440434792982, 'start_ts': 1440434732265, 'end_time': '2015-08-24 09:46:32', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (2, 29), formatted_time.head() = 0 2015-08-24 09:45:35
1 2015-08-24 09:46:06
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 7: 2015-08-24 09:46:32 -> 2015-08-24 09:48:42 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (4, 29) to (4, 29)
DEBUG:root:quartile values are 0.25 0.660113
0.75 1.213278
Name: speed, dtype: float64
DEBUG:root:iqr 0.553164995257
DEBUG:root:For cluster 0 - 3, distance = 21.9451827453, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 3, 21.9451827453)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 46, 32), 'end_ts': 1440434922747, 'start_ts': 1440434792982, 'end_time': Timestamp('2015-08-24 09:48:42'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (4, 29), formatted_time.head() = 0 2015-08-24 09:46:36
1 2015-08-24 09:47:08
2 2015-08-24 09:47:40
3 2015-08-24 09:48:11
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-24 09:48:42 -> 2015-08-24 19:01:09 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440434922747}}, {'data.mTime': {'$lt': 1440468069592}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-24 09:48:42 -> 2015-08-24 09:51:48 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 29) to (6, 29)
DEBUG:root:quartile values are 0.25 0.050946
0.75 0.086731
Name: speed, dtype: float64
DEBUG:root:iqr 0.0357850376553
DEBUG:root:For cluster 0 - 5, distance = 0.770788835317, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 5, 0.770788835317)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': Timestamp('2015-08-24 09:48:42'), 'end_ts': 1440435108698, 'start_ts': 1440434922747, 'end_time': '2015-08-24 09:51:48', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (6, 29), formatted_time.head() = 0 2015-08-24 09:49:12
1 2015-08-24 09:49:43
2 2015-08-24 09:50:14
3 2015-08-24 09:50:45
4 2015-08-24 09:51:16
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 09:51:48 -> 2015-08-24 18:59:04 --------------------
DEBUG:root:filtering points Int64Index([17, 18], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (20, 29) to (18, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 1.101025
0.75 5.341057
Name: speed, dtype: float64
DEBUG:root:iqr 4.24003190674
DEBUG:root:For cluster 0 - 17, distance = 1176.3683454, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 17, 1176.3683454)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 9, 51, 48), 'end_ts': 1440467944483, 'start_ts': 1440435108698, 'end_time': '2015-08-24 18:59:04', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (18, 29), formatted_time.head() = 0 2015-08-24 18:49:24
1 2015-08-24 18:49:24
2 2015-08-24 18:49:58
3 2015-08-24 18:50:33
4 2015-08-24 18:51:05
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 18:59:04 -> 2015-08-24 19:01:09 --------------------
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 0.296947
0.75 0.518617
Name: speed, dtype: float64
DEBUG:root:iqr 0.221670935635
DEBUG:root:For cluster 0 - 2, distance = 39.2633841541, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 2, 39.2633841541)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 18, 59, 4), 'end_ts': 1440468069592, 'start_ts': 1440467944483, 'end_time': Timestamp('2015-08-24 19:01:09'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (3, 29), formatted_time.head() = 0 2015-08-24 18:59:16
1 2015-08-24 19:00:18
2 2015-08-24 19:00:38
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:==================== 2015-08-24 19:01:09 -> 2015-08-24 20:02:21 ====================
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440468069592}}, {'data.mTime': {'$lt': 1440471741808}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
DEBUG:root:-------------------- 0: 2015-08-24 19:01:09 -> 2015-08-24 19:04:48 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 29) to (6, 29)
DEBUG:root:quartile values are 0.25 0.424971
0.75 0.511874
Name: speed, dtype: float64
DEBUG:root:iqr 0.0869028558666
DEBUG:root:For cluster 0 - 4, distance = 25.3639686251, is_cluster = True
DEBUG:root:For cluster 4 - 5, distance = 0.0, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 4, 25.3639686251), Segment(4, 5, 0.0)] with size 2
DEBUG:root:Processing segment 1: Segment(4, 5, 0.0), 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(4, 5, 0.0)]
DEBUG:root:after setting values, outlier_mask = [4]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
4 37.279212 -121.948563 40.5 2015-08-24 19:03:46
DEBUG:root:quartile values are 0.25 0.38994
0.75 0.45320
Name: speed, dtype: float64
DEBUG:root:iqr 0.0632601102769
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': Timestamp('2015-08-24 19:01:09'), 'end_ts': 1440468288726, 'start_ts': 1440468069592, 'end_time': '2015-08-24 19:04:48', 'activity': <Activities.STILL: 3>, 'loc_filter': 'time'}), section_df.shape = (5, 29), formatted_time.head() = 0 2015-08-24 19:01:40
1 2015-08-24 19:02:11
2 2015-08-24 19:02:44
3 2015-08-24 19:03:15
5 2015-08-24 19:04:17
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 19:04:48 -> 2015-08-24 19:26:14 --------------------
DEBUG:root:filtering points Int64Index([13, 14, 21], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (22, 29) to (19, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 3.779388
0.75 13.797121
Name: speed, dtype: float64
DEBUG:root:iqr 10.0177331996
DEBUG:root:For cluster 0 - 18, distance = 6734.63471275, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 18, 6734.63471275)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 19, 4, 48), 'end_ts': 1440469574982, 'start_ts': 1440468288726, 'end_time': '2015-08-24 19:26:14', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (19, 29), formatted_time.head() = 0 2015-08-24 19:04:49
1 2015-08-24 19:15:31
2 2015-08-24 19:15:31
3 2015-08-24 19:16:08
4 2015-08-24 19:16:40
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 19:26:14 -> 2015-08-24 19:30:02 --------------------
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 1.011857
0.75 3.085135
Name: speed, dtype: float64
DEBUG:root:iqr 2.07327850161
DEBUG:root:For cluster 0 - 7, distance = 223.926654684, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 7, 223.926654684)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 19, 26, 14), 'end_ts': 1440469802248, 'start_ts': 1440469574982, 'end_time': '2015-08-24 19:30:02', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (8, 29), formatted_time.head() = 0 2015-08-24 19:26:37
1 2015-08-24 19:27:07
2 2015-08-24 19:27:31
3 2015-08-24 19:28:06
4 2015-08-24 19:28:39
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-24 19:30:02 -> 2015-08-24 19:50:11 --------------------
DEBUG:root:filtering points Int64Index([45, 61], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (36, 29) to (34, 29)
DEBUG:root:quartile values are 0.25 8.388303
0.75 21.475777
Name: speed, dtype: float64
DEBUG:root:iqr 13.0874736753
DEBUG:root:For cluster 0 - 33, distance = 16610.1449899, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 33, 16610.1449899)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 19, 30, 2), 'end_ts': 1440471011264, 'start_ts': 1440469802248, 'end_time': '2015-08-24 19:50:11', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (34, 29), formatted_time.head() = 0 2015-08-24 19:30:45
1 2015-08-24 19:31:04
2 2015-08-24 19:31:48
3 2015-08-24 19:32:21
4 2015-08-24 19:32:53
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-24 19:50:11 -> 2015-08-24 19:53:55 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (7, 29) to (7, 29)
DEBUG:root:quartile values are 0.25 0.252941
0.75 4.206476
Name: speed, dtype: float64
DEBUG:root:iqr 3.95353490349
DEBUG:root:For cluster 0 - 6, distance = 227.804248045, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 6, 227.804248045)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 19, 50, 11), 'end_ts': 1440471235057, 'start_ts': 1440471011264, 'end_time': '2015-08-24 19:53:55', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (7, 29), formatted_time.head() = 0 2015-08-24 19:50:27
1 2015-08-24 19:50:58
2 2015-08-24 19:51:29
3 2015-08-24 19:52:03
4 2015-08-24 19:52:34
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 5: 2015-08-24 19:53:55 -> 2015-08-24 20:01:18 --------------------
DEBUG:root:filtering points Int64Index([81, 93], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (15, 29) to (13, 29)
DEBUG:root:quartile values are 0.25 0.944608
0.75 4.094622
Name: speed, dtype: float64
DEBUG:root:iqr 3.15001397737
DEBUG:root:For cluster 0 - 12, distance = 944.40481716, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 12, 944.40481716)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 19, 53, 55), 'end_ts': 1440471678731, 'start_ts': 1440471235057, 'end_time': '2015-08-24 20:01:18', 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (13, 29), formatted_time.head() = 0 2015-08-24 19:53:55
1 2015-08-24 19:54:24
2 2015-08-24 19:55:30
3 2015-08-24 19:56:16
4 2015-08-24 19:56:30
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 6: 2015-08-24 20:01:18 -> 2015-08-24 20:02:21 --------------------
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('b0d937d0-70ef-305e-9563-440369012b39'), 'start_time': datetime.datetime(2015, 8, 24, 20, 1, 18), 'end_ts': 1440471741808, 'start_ts': 1440471678731, 'end_time': Timestamp('2015-08-24 20:02:21'), 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (1, 29), formatted_time.head() = 0 2015-08-24 20:01:50
Name: formatted_time, dtype: datetime64[ns]
In [74]:
ipy.inline_maps([[map] for map in section_map_list_24], len(section_map_list_24), 1)
Out[74]:
Tom's trips for this notebook show that having a simple threshold of 60% causes flipflopping in some cases. In particular, consider the trip from Stevenson to the train station (08:26:42 -> 2015-08-24 09:05:10). We often flip-flop between in bicycle and onfoot. This will not be addressed by the Markov smoothing described in the PerCom paper because they return the top rated activity if its confidence is above the threshold ($cv{t,1} > threshold_{trans}$) .
At 2015-08-24 08:34:30, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:33:56
At 2015-08-24 08:35:06, retained existing activity Activities.ON_BICYCLE because of no change
At 2015-08-24 08:35:45, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 08:35:06
At 2015-08-24 08:36:09, retained existing activity Activities.ON_FOOT because of no change
At 2015-08-24 08:36:58, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-24 08:36:09
At 2015-08-24 08:38:02, retained existing activity Activities.ON_BICYCLE because of low confidence
At 2015-08-24 08:38:53, found new activity Activities.ON_FOOT compared to current Activities.ON_BICYCLE - creating new section with start_time 2015-08-24 08:38:02
However, segmenting at this frequency has two issues:
Note that this is only minor challenge. If we have a trip-centric view, then segmentation errors are likely to be less annoying. And the error caused by the smoothing algorithm is small. In other words, you could argue that this is the 20 of the 80:20 rule. On the other hand, it seems like a little post-smoothing could easily address these issues as well. I am going to try the post-smoothing and see if it improves things.
In [75]:
[((section.end_ts - section.start_ts)/1000, section.activity) for section in trip_section_map[1][1]]
Out[75]:
[(26, <Activities.UNKNOWN: 4>),
(283, <Activities.ON_FOOT: 2>),
(70, <Activities.ON_BICYCLE: 1>),
(62, <Activities.ON_FOOT: 2>),
(113, <Activities.ON_BICYCLE: 1>),
(726, <Activities.ON_FOOT: 2>),
(739, <Activities.IN_VEHICLE: 0>),
(290, <Activities.ON_FOOT: 2>)]
In [76]:
two_and_half_minutes = 2 * 60 + 30; two_and_half_minutes
Out[76]:
150
Algorithm:
Run detection algorithm:
In [77]:
def detect_runs(short_section_index_list):
in_run = False
curr_run_start = -1
run_list = []
for i in short_section_index_list:
if not in_run:
in_run = True
curr_run_start = i
if in_run and (i+1) not in short_section_index_list:
run_list.append((curr_run_start, i))
in_run = False
curr_run_start = -1
return run_list
In [78]:
detect_runs([0, 2,3,4, 7,8,9])
Out[78]:
[(0, 0), (2, 4), (7, 9)]
In [79]:
def combine_short_sections(section_list):
import copy
if len(section_list) == 0 or len(section_list) == 1:
return section_list
short_section_index_list = [i for i, section in enumerate(section_list) if (section.end_ts - section.start_ts)/1000 < two_and_half_minutes]
print "short_section_index_list = %s" % short_section_index_list
short_section_run_list = detect_runs(short_section_index_list)
print "short_section_run_list = %s" % short_section_run_list
copied_sections = [copy.copy(section) for section in section_list]
# merge sections if necessary
for i, curr_run in enumerate(short_section_run_list):
if curr_run[0] == 0 or curr_run[1] == len(section_list) - 1:
print("Current run has no left or right side, no need to merge")
else:
left_good_section = copied_sections[curr_run[0] - 1]
right_good_section = copied_sections[curr_run[1] + 1]
if (left_good_section.activity == right_good_section.activity):
print("For run %s, merging right %s and left %s" % (curr_run, left_good_section, right_good_section))
left_good_section.end_ts = right_good_section.end_ts
left_good_section.end_time = right_good_section.end_time
# Extend the range by 1 because we have already merged the right section into the left section,
# so we need to delete the left section. Deleting it here will mess up indexing for the rest of the
# iteration, unless we use a dataframe, ha!
short_section_run_list[i] = (curr_run[0], curr_run[1] + 1)
short_section_index_list.append(curr_run[1] + 1)
else:
print("For run %s, interpolating right %s and left %s" % (curr_run, left_good_section, right_good_section))
midpoint_ts = (left_good_section.end_ts + right_good_section.start_ts) / 2
midpoint_time = str(pydt.datetime.fromtimestamp(midpoint_ts))
left_good_section.end_ts = midpoint_ts
left_good_section.end_time = midpoint_time
right_good_section.start_ts = midpoint_ts
left_good_section.start_time = midpoint_time
retained_sections = []
for (i, section) in enumerate(copied_sections):
if i not in short_section_index_list:
retained_sections.append(section)
return retained_sections
In [80]:
combined_section_list = combine_short_sections(trip_section_map[1][1])
short_section_index_list = [0, 2, 3, 4]
short_section_run_list = [(0, 0), (2, 4)]
Current run has no left or right side, no need to merge
For run (2, 4), merging right AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'end_time': '2015-08-24 08:33:56', 'activity': <Activities.ON_FOOT: 2>, 'start_time': datetime.datetime(2015, 8, 24, 8, 29, 12), 'end_ts': 1440430436086, 'start_ts': 1440430152748, 'loc_filter': 'time'}) and left AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'end_time': '2015-08-24 08:50:08', 'activity': <Activities.ON_FOOT: 2>, 'start_time': datetime.datetime(2015, 8, 24, 8, 38, 2), 'end_ts': 1440431408887, 'start_ts': 1440430682168, 'loc_filter': 'time'})
In [81]:
section_map_list_24 = lo.get_map_list_after_segmentation([(trip_section_map[1][0], combined_section_list)],
cso.BoxplotOutlier(ignore_zeros=True),
cjs.SmoothZigzag())
DEBUG:root:==================== 2015-08-24 08:28:45 -> 2015-08-24 09:07:19 ====================
DEBUG:root:-------------------- 0: 2015-08-24 08:29:12 -> 2015-08-24 08:50:08 --------------------
DEBUG:root:filtering points Int64Index([24, 25], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (39, 29) to (37, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25 0.344561
0.75 5.386763
Name: speed, dtype: float64
DEBUG:root:iqr 5.04220246247
DEBUG:root:For cluster 0 - 36, distance = 1046.98015129, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 36, 1046.98015129)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'end_time': '2015-08-24 08:50:08', 'activity': <Activities.ON_FOOT: 2>, 'start_time': datetime.datetime(2015, 8, 24, 8, 29, 12), 'end_ts': 1440431408887, 'start_ts': 1440430152748, 'loc_filter': 'time'}), section_df.shape = (37, 29), formatted_time.head() = 0 2015-08-24 08:29:16
1 2015-08-24 08:29:47
2 2015-08-24 08:30:18
3 2015-08-24 08:30:49
4 2015-08-24 08:31:20
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-24 08:50:08 -> 2015-08-24 09:02:28 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (22, 29) to (22, 29)
DEBUG:root:quartile values are 0.25 13.963650
0.75 34.248592
Name: speed, dtype: float64
DEBUG:root:iqr 20.2849418085
DEBUG:root:For cluster 0 - 21, distance = 16846.1018138, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 21, 16846.1018138)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'end_time': '2015-08-24 09:02:28', 'activity': <Activities.IN_VEHICLE: 0>, 'start_time': datetime.datetime(2015, 8, 24, 8, 50, 8), 'end_ts': 1440432148691, 'start_ts': 1440431408887, 'loc_filter': 'time'}), section_df.shape = (22, 29), formatted_time.head() = 0 2015-08-24 08:50:13
1 2015-08-24 08:50:44
2 2015-08-24 08:51:15
3 2015-08-24 08:51:47
4 2015-08-24 08:52:18
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-24 09:02:28 -> 2015-08-24 09:07:19 --------------------
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.658704
0.75 1.483537
Name: speed, dtype: float64
DEBUG:root:iqr 0.824832661452
DEBUG:root:For cluster 0 - 4, distance = 47.8189116097, is_cluster = True
DEBUG:root:For cluster 4 - 8, distance = 61.3135524169, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 4, 47.8189116097), Segment(4, 8, 61.3135524169)] with size 2
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT
DEBUG:root:Processing segment 0: Segment(0, 4, 47.8189116097), 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, 4, 47.8189116097)]
DEBUG:root:after setting values, outlier_mask = [0 1 2 3]
DEBUG:root:point details are mLatitude mLongitude mAccuracy formatted_time
0 37.330480 -121.903009 40.500 2015-08-24 09:02:32
1 37.330845 -121.902722 42.000 2015-08-24 09:03:03
2 37.330845 -121.902722 83.474 2015-08-24 09:03:31
3 37.330845 -121.902722 131.211 2015-08-24 09:04:03
DEBUG:root:quartile values are 0.25 0.438924
0.75 1.005464
Name: speed, dtype: float64
DEBUG:root:iqr 0.566539994463
DEBUG:root:for section AttrDict({'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'end_time': Timestamp('2015-08-24 09:07:19'), 'activity': <Activities.ON_FOOT: 2>, 'start_time': datetime.datetime(2015, 8, 24, 9, 2, 28), 'end_ts': 1440432439533, 'start_ts': 1440432148691, 'loc_filter': 'time'}), section_df.shape = (5, 29), formatted_time.head() = 4 2015-08-24 09:04:38
5 2015-08-24 09:05:10
6 2015-08-24 09:05:45
7 2015-08-24 09:06:17
8 2015-08-24 09:06:48
Name: formatted_time, dtype: datetime64[ns]
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440430125903}}, {'data.mTime': {'$lt': 1440432439533}}], 'user_id': UUID('b0d937d0-70ef-305e-9563-440369012b39'), 'metadata.filter': 'time'}
In [82]:
ipy.inline_maps([[map] for map in section_map_list_24], len(section_map_list_24), 1)
Out[82]:
In [82]:
In [ ]:
Content source: joshzarrabi/e-mission-server
Similar notebooks: