From 8bca1fecf1420d422805af6a596da80e9138d001 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Fri, 3 May 2024 15:04:29 -0400 Subject: [PATCH] regenerate 'expected_confirmed_trip' snapshots with `ble_sensed_summary` `ble_sensed_summary` is a new property for confirmed trips, so tests fail on the old snapshots. New generated snapshots are the same, but with different uuid and oids, and with empty ble_sensed_summary values in each confirmed trip. Currently we don't have any tests with BLE sensor data, so there are no tests that have a `ble_sensed_summary` that is filled in. Coming later... --- .../userInputTests/TestUserInput.py | 2 + ...ankari_2016-06-20.expected_confirmed_trips | 236 +++++++++-------- ...confirmed_trips.manual_trip_addition_input | 238 +++++++++-------- ...ted_confirmed_trips.manual_trip_user_input | 242 ++++++++++-------- 4 files changed, 405 insertions(+), 313 deletions(-) diff --git a/emission/tests/analysisTests/userInputTests/TestUserInput.py b/emission/tests/analysisTests/userInputTests/TestUserInput.py index 49a9ffce4..c5455ab2a 100644 --- a/emission/tests/analysisTests/userInputTests/TestUserInput.py +++ b/emission/tests/analysisTests/userInputTests/TestUserInput.py @@ -90,6 +90,8 @@ def compare_confirmed_objs_result(self, result_dicts, expect_dicts, manual_keys self.assertEqual(rt.data["inferred_section_summary"], et.data["inferred_section_summary"]) if "cleaned_section_summary" in et.data: self.assertEqual(rt.data["cleaned_section_summary"], et.data["cleaned_section_summary"]) + if 'ble_sensed_summary' in et.data: + self.assertEqual(rt.data["ble_sensed_summary"], et.data["ble_sensed_summary"]) logging.debug(20 * "=") def compare_section_result(self, result, expect): diff --git a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips index c2a170e78..c4262cebb 100644 --- a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips +++ b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips @@ -1,27 +1,27 @@ [ { "_id": { - "$oid": "6493309c15a3780e6be29fc9" + "$oid": "6635321269e6b3b5d07065f2" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367836.921912, + "write_ts": 1714762258.733232, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 16, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 58, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:16.921912-07:00" + "write_fmt_time": "2024-05-03T11:50:58.733232-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -45,7 +45,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29ecf" + "$oid": "6635321069e6b3b5d07064f9" }, "start_ts": 1466436483.395, "start_local_dt": { @@ -69,24 +69,24 @@ "duration": 792.4609999656677, "distance": 1047.1630675866315, "start_place": { - "$oid": "6493309c15a3780e6be29fc8" + "$oid": "6635321269e6b3b5d07065f1" }, "end_place": { - "$oid": "6493309c15a3780e6be29fca" + "$oid": "6635321269e6b3b5d07065f3" }, "cleaned_trip": { - "$oid": "6493309915a3780e6be29ef2" + "$oid": "6635321169e6b3b5d070651c" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fae" + "$oid": "6635321269e6b3b5d07065d7" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc1" + "$oid": "6635321269e6b3b5d07065ea" }, "inferred_section_summary": { "distance": {}, @@ -104,6 +104,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "mode_confirm": "walk", "purpose_confirm": "library" @@ -113,27 +118,27 @@ }, { "_id": { - "$oid": "6493309d15a3780e6be29fcb" + "$oid": "6635321269e6b3b5d07065f4" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367837.162344, + "write_ts": 1714762258.883084, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 17, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 58, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:17.162344-07:00" + "write_fmt_time": "2024-05-03T11:50:58.883084-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -157,7 +162,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29ed1" + "$oid": "6635321069e6b3b5d07064fb" }, "start_ts": 1466437438.6453953, "start_local_dt": { @@ -181,24 +186,24 @@ "duration": 584.3136048316956, "distance": 886.4937093667857, "start_place": { - "$oid": "6493309c15a3780e6be29fca" + "$oid": "6635321269e6b3b5d07065f3" }, "end_place": { - "$oid": "6493309d15a3780e6be29fcc" + "$oid": "6635321269e6b3b5d07065f5" }, "cleaned_trip": { - "$oid": "6493309a15a3780e6be29f11" + "$oid": "6635321169e6b3b5d070653b" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fb1" + "$oid": "6635321269e6b3b5d07065d8" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc2" + "$oid": "6635321269e6b3b5d07065eb" }, "inferred_section_summary": { "distance": {}, @@ -216,33 +221,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "6493309d15a3780e6be29fcd" + "$oid": "6635321369e6b3b5d07065f6" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367837.410047, + "write_ts": 1714762259.064074, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 17, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 59, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:17.410047-07:00" + "write_fmt_time": "2024-05-03T11:50:59.064074-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -266,7 +276,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29ed3" + "$oid": "6635321069e6b3b5d07064fd" }, "start_ts": 1466461623.1195338, "start_local_dt": { @@ -290,24 +300,24 @@ "duration": 343.25946617126465, "distance": 610.2234223038181, "start_place": { - "$oid": "6493309d15a3780e6be29fcc" + "$oid": "6635321269e6b3b5d07065f5" }, "end_place": { - "$oid": "6493309d15a3780e6be29fce" + "$oid": "6635321369e6b3b5d07065f7" }, "cleaned_trip": { - "$oid": "6493309a15a3780e6be29f29" + "$oid": "6635321169e6b3b5d0706553" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fb4" + "$oid": "6635321269e6b3b5d07065d9" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc3" + "$oid": "6635321269e6b3b5d07065ec" }, "inferred_section_summary": { "distance": {}, @@ -325,33 +335,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "6493309d15a3780e6be29fcf" + "$oid": "6635321369e6b3b5d07065f8" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367837.665754, + "write_ts": 1714762259.2089221, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 17, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 59, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:17.665754-07:00" + "write_fmt_time": "2024-05-03T11:50:59.208922-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -375,7 +390,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29ed5" + "$oid": "6635321069e6b3b5d07064ff" }, "start_ts": 1466462052.158904, "start_local_dt": { @@ -399,24 +414,24 @@ "duration": 400.54909586906433, "distance": 405.97685486691756, "start_place": { - "$oid": "6493309d15a3780e6be29fce" + "$oid": "6635321369e6b3b5d07065f7" }, "end_place": { - "$oid": "6493309d15a3780e6be29fd0" + "$oid": "6635321369e6b3b5d07065f9" }, "cleaned_trip": { - "$oid": "6493309a15a3780e6be29f39" + "$oid": "6635321169e6b3b5d0706563" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fb7" + "$oid": "6635321269e6b3b5d07065da" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc4" + "$oid": "6635321269e6b3b5d07065ed" }, "inferred_section_summary": { "distance": {}, @@ -434,6 +449,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "mode_confirm": "walk", "purpose_confirm": "home" @@ -443,27 +463,27 @@ }, { "_id": { - "$oid": "6493309d15a3780e6be29fd1" + "$oid": "6635321369e6b3b5d07065fa" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367837.881526, + "write_ts": 1714762259.4899352, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 17, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 59, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:17.881526-07:00" + "write_fmt_time": "2024-05-03T11:50:59.489935-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -487,7 +507,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29ed7" + "$oid": "6635321069e6b3b5d0706501" }, "start_ts": 1466462970.2807262, "start_local_dt": { @@ -511,24 +531,24 @@ "duration": 865.4322738647461, "distance": 4521.417177464177, "start_place": { - "$oid": "6493309d15a3780e6be29fd0" + "$oid": "6635321369e6b3b5d07065f9" }, "end_place": { - "$oid": "6493309d15a3780e6be29fd2" + "$oid": "6635321369e6b3b5d07065fb" }, "cleaned_trip": { - "$oid": "6493309b15a3780e6be29f4b" + "$oid": "6635321269e6b3b5d0706575" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fba" + "$oid": "6635321269e6b3b5d07065db" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc5" + "$oid": "6635321269e6b3b5d07065ee" }, "inferred_section_summary": { "distance": {}, @@ -549,6 +569,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "mode_confirm": "shared_ride", "purpose_confirm": "karate" @@ -558,27 +583,27 @@ }, { "_id": { - "$oid": "6493309e15a3780e6be29fd3" + "$oid": "6635321369e6b3b5d07065fc" }, "user_id": { - "$uuid": "aa9fdec9-2944-446c-8ee2-50d79b3044d3" + "$uuid": "344d603232dc4e6983e4eecdddf1f6f5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687367838.1055691, + "write_ts": 1714762259.66389, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 17, - "second": 18, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 50, + "second": 59, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:17:18.105569-07:00" + "write_fmt_time": "2024-05-03T11:50:59.663890-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -602,7 +627,7 @@ ] }, "raw_trip": { - "$oid": "6493309815a3780e6be29edb" + "$oid": "6635321069e6b3b5d0706505" }, "start_ts": 1466466589.3710227, "start_local_dt": { @@ -626,24 +651,24 @@ "duration": 1370.3959772586823, "distance": 5396.705710302932, "start_place": { - "$oid": "6493309d15a3780e6be29fd2" + "$oid": "6635321369e6b3b5d07065fb" }, "end_place": { - "$oid": "6493309e15a3780e6be29fd4" + "$oid": "6635321369e6b3b5d07065fd" }, "cleaned_trip": { - "$oid": "6493309b15a3780e6be29f6f" + "$oid": "6635321269e6b3b5d0706599" }, "inferred_labels": [], "inferred_trip": { - "$oid": "6493309c15a3780e6be29fbd" + "$oid": "6635321269e6b3b5d07065dc" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "6493309c15a3780e6be29fc6" + "$oid": "6635321269e6b3b5d07065ef" }, "inferred_section_summary": { "distance": {}, @@ -664,6 +689,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "mode_confirm": "shared_ride", "purpose_confirm": "home" @@ -671,4 +701,4 @@ "additions": [] } } -] +] \ No newline at end of file diff --git a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_addition_input b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_addition_input index d6d96ec67..fb4711e7b 100644 --- a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_addition_input +++ b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_addition_input @@ -1,27 +1,27 @@ [ { "_id": { - "$oid": "64933307ddae82d93a5158db" + "$oid": "6635321a69e6b3b5d0706702" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368455.0237079, + "write_ts": 1714762266.4695292, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 35, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 6, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:35.023708-07:00" + "write_fmt_time": "2024-05-03T11:51:06.469529-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -45,7 +45,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157e1" + "$oid": "6635321869e6b3b5d0706609" }, "start_ts": 1466436483.395, "start_local_dt": { @@ -69,24 +69,24 @@ "duration": 792.4609999656677, "distance": 1047.1630675866315, "start_place": { - "$oid": "64933306ddae82d93a5158da" + "$oid": "6635321a69e6b3b5d0706701" }, "end_place": { - "$oid": "64933307ddae82d93a5158dc" + "$oid": "6635321a69e6b3b5d0706703" }, "cleaned_trip": { - "$oid": "64933305ddae82d93a515804" + "$oid": "6635321969e6b3b5d070662c" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158c0" + "$oid": "6635321a69e6b3b5d07066e7" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d3" + "$oid": "6635321a69e6b3b5d07066fa" }, "inferred_section_summary": { "distance": {}, @@ -104,6 +104,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [ { @@ -111,7 +116,7 @@ "$oid": "640cad8d41c2a574a7b4a801" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "time_zone": "America/New_York", @@ -198,27 +203,27 @@ }, { "_id": { - "$oid": "64933307ddae82d93a5158dd" + "$oid": "6635321a69e6b3b5d0706704" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368455.210249, + "write_ts": 1714762266.623338, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 35, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 6, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:35.210249-07:00" + "write_fmt_time": "2024-05-03T11:51:06.623338-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -242,7 +247,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157e3" + "$oid": "6635321869e6b3b5d070660b" }, "start_ts": 1466437438.6453953, "start_local_dt": { @@ -266,24 +271,24 @@ "duration": 584.3136048316956, "distance": 886.4937093667857, "start_place": { - "$oid": "64933307ddae82d93a5158dc" + "$oid": "6635321a69e6b3b5d0706703" }, "end_place": { - "$oid": "64933307ddae82d93a5158de" + "$oid": "6635321a69e6b3b5d0706705" }, "cleaned_trip": { - "$oid": "64933305ddae82d93a515823" + "$oid": "6635321969e6b3b5d070664b" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158c3" + "$oid": "6635321a69e6b3b5d07066e8" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d4" + "$oid": "6635321a69e6b3b5d07066fb" }, "inferred_section_summary": { "distance": {}, @@ -301,6 +306,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [ { @@ -308,7 +318,7 @@ "$oid": "640cad8d41c2a574a7b4a809" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "time_zone": "America/New_York", @@ -395,27 +405,27 @@ }, { "_id": { - "$oid": "64933307ddae82d93a5158df" + "$oid": "6635321a69e6b3b5d0706706" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368455.392829, + "write_ts": 1714762266.803599, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 35, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 6, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:35.392829-07:00" + "write_fmt_time": "2024-05-03T11:51:06.803599-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -439,7 +449,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157e5" + "$oid": "6635321869e6b3b5d070660d" }, "start_ts": 1466461623.1195338, "start_local_dt": { @@ -463,24 +473,24 @@ "duration": 343.25946617126465, "distance": 610.2234223038181, "start_place": { - "$oid": "64933307ddae82d93a5158de" + "$oid": "6635321a69e6b3b5d0706705" }, "end_place": { - "$oid": "64933307ddae82d93a5158e0" + "$oid": "6635321a69e6b3b5d0706707" }, "cleaned_trip": { - "$oid": "64933305ddae82d93a51583b" + "$oid": "6635321969e6b3b5d0706663" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158c6" + "$oid": "6635321a69e6b3b5d07066e9" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d5" + "$oid": "6635321a69e6b3b5d07066fc" }, "inferred_section_summary": { "distance": {}, @@ -498,33 +508,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "64933307ddae82d93a5158e1" + "$oid": "6635321a69e6b3b5d0706708" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368455.578741, + "write_ts": 1714762266.993064, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 35, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 6, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:35.578741-07:00" + "write_fmt_time": "2024-05-03T11:51:06.993064-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -548,7 +563,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157e7" + "$oid": "6635321869e6b3b5d070660f" }, "start_ts": 1466462052.158904, "start_local_dt": { @@ -572,24 +587,24 @@ "duration": 400.54909586906433, "distance": 405.97685486691756, "start_place": { - "$oid": "64933307ddae82d93a5158e0" + "$oid": "6635321a69e6b3b5d0706707" }, "end_place": { - "$oid": "64933307ddae82d93a5158e2" + "$oid": "6635321b69e6b3b5d0706709" }, "cleaned_trip": { - "$oid": "64933305ddae82d93a51584b" + "$oid": "6635321969e6b3b5d0706673" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158c9" + "$oid": "6635321a69e6b3b5d07066ea" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d6" + "$oid": "6635321a69e6b3b5d07066fd" }, "inferred_section_summary": { "distance": {}, @@ -607,33 +622,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "64933307ddae82d93a5158e3" + "$oid": "6635321b69e6b3b5d070670a" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368455.806772, + "write_ts": 1714762267.145938, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 35, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 7, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:35.806772-07:00" + "write_fmt_time": "2024-05-03T11:51:07.145938-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -657,7 +677,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157e9" + "$oid": "6635321869e6b3b5d0706611" }, "start_ts": 1466462970.2807262, "start_local_dt": { @@ -681,24 +701,24 @@ "duration": 865.4322738647461, "distance": 4521.417177464177, "start_place": { - "$oid": "64933307ddae82d93a5158e2" + "$oid": "6635321b69e6b3b5d0706709" }, "end_place": { - "$oid": "64933307ddae82d93a5158e4" + "$oid": "6635321b69e6b3b5d070670b" }, "cleaned_trip": { - "$oid": "64933305ddae82d93a51585d" + "$oid": "6635321969e6b3b5d0706685" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158cc" + "$oid": "6635321a69e6b3b5d07066eb" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d7" + "$oid": "6635321a69e6b3b5d07066fe" }, "inferred_section_summary": { "distance": {}, @@ -719,33 +739,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "64933308ddae82d93a5158e5" + "$oid": "6635321b69e6b3b5d070670c" }, "user_id": { - "$uuid": "4ef98df66c794a4ea4af156986d5e167" + "$uuid": "233a2d2f55184118a8071aa93d92d35a" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368456.0238578, + "write_ts": 1714762267.5216131, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 27, - "second": 36, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 7, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:27:36.023858-07:00" + "write_fmt_time": "2024-05-03T11:51:07.521613-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -769,7 +794,7 @@ ] }, "raw_trip": { - "$oid": "64933303ddae82d93a5157ed" + "$oid": "6635321869e6b3b5d0706615" }, "start_ts": 1466466589.3710227, "start_local_dt": { @@ -793,24 +818,24 @@ "duration": 1370.3959772586823, "distance": 5396.705710302932, "start_place": { - "$oid": "64933307ddae82d93a5158e4" + "$oid": "6635321b69e6b3b5d070670b" }, "end_place": { - "$oid": "64933308ddae82d93a5158e6" + "$oid": "6635321b69e6b3b5d070670d" }, "cleaned_trip": { - "$oid": "64933306ddae82d93a515881" + "$oid": "6635321969e6b3b5d07066a9" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933306ddae82d93a5158cf" + "$oid": "6635321a69e6b3b5d07066ec" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933306ddae82d93a5158d8" + "$oid": "6635321a69e6b3b5d07066ff" }, "inferred_section_summary": { "distance": {}, @@ -831,6 +856,11 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } diff --git a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_user_input b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_user_input index 04613a97b..33fa4138f 100644 --- a/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_user_input +++ b/emission/tests/data/real_examples/shankari_2016-06-20.expected_confirmed_trips.manual_trip_user_input @@ -1,27 +1,27 @@ [ { "_id": { - "$oid": "64933296eb9c1ad493f8aeb2" + "$oid": "6635322269e6b3b5d0706812" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368342.147376, + "write_ts": 1714762274.819944, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 42, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 14, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:42.147376-07:00" + "write_fmt_time": "2024-05-03T11:51:14.819944-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -45,7 +45,7 @@ ] }, "raw_trip": { - "$oid": "64933292eb9c1ad493f8adb8" + "$oid": "6635322069e6b3b5d0706719" }, "start_ts": 1466436483.395, "start_local_dt": { @@ -69,24 +69,24 @@ "duration": 792.4609999656677, "distance": 1047.1630675866315, "start_place": { - "$oid": "64933295eb9c1ad493f8aeb1" + "$oid": "6635322269e6b3b5d0706811" }, "end_place": { - "$oid": "64933296eb9c1ad493f8aeb3" + "$oid": "6635322269e6b3b5d0706813" }, "cleaned_trip": { - "$oid": "64933294eb9c1ad493f8addb" + "$oid": "6635322169e6b3b5d070673c" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8ae97" + "$oid": "6635322269e6b3b5d07067f7" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aeaa" + "$oid": "6635322269e6b3b5d070680a" }, "inferred_section_summary": { "distance": {}, @@ -104,13 +104,18 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "trip_user_input": { "_id": { "$oid": "5fd7b7bdf181cd8feb045f29" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "manual/trip_user_input", @@ -193,27 +198,27 @@ }, { "_id": { - "$oid": "64933296eb9c1ad493f8aeb4" + "$oid": "6635322369e6b3b5d0706814" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368342.327698, + "write_ts": 1714762275.027479, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 42, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 15, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:42.327698-07:00" + "write_fmt_time": "2024-05-03T11:51:15.027479-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -237,7 +242,7 @@ ] }, "raw_trip": { - "$oid": "64933292eb9c1ad493f8adba" + "$oid": "6635322069e6b3b5d070671b" }, "start_ts": 1466437438.6453953, "start_local_dt": { @@ -261,24 +266,24 @@ "duration": 584.3136048316956, "distance": 886.4937093667857, "start_place": { - "$oid": "64933296eb9c1ad493f8aeb3" + "$oid": "6635322269e6b3b5d0706813" }, "end_place": { - "$oid": "64933296eb9c1ad493f8aeb5" + "$oid": "6635322369e6b3b5d0706815" }, "cleaned_trip": { - "$oid": "64933294eb9c1ad493f8adfa" + "$oid": "6635322169e6b3b5d070675b" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8ae9a" + "$oid": "6635322269e6b3b5d07067f8" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aeab" + "$oid": "6635322269e6b3b5d070680b" }, "inferred_section_summary": { "distance": {}, @@ -296,33 +301,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "64933296eb9c1ad493f8aeb6" + "$oid": "6635322369e6b3b5d0706816" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368342.509429, + "write_ts": 1714762275.196306, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 42, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 15, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:42.509429-07:00" + "write_fmt_time": "2024-05-03T11:51:15.196306-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -346,7 +356,7 @@ ] }, "raw_trip": { - "$oid": "64933292eb9c1ad493f8adbc" + "$oid": "6635322069e6b3b5d070671d" }, "start_ts": 1466461623.1195338, "start_local_dt": { @@ -370,24 +380,24 @@ "duration": 343.25946617126465, "distance": 610.2234223038181, "start_place": { - "$oid": "64933296eb9c1ad493f8aeb5" + "$oid": "6635322369e6b3b5d0706815" }, "end_place": { - "$oid": "64933296eb9c1ad493f8aeb7" + "$oid": "6635322369e6b3b5d0706817" }, "cleaned_trip": { - "$oid": "64933294eb9c1ad493f8ae12" + "$oid": "6635322169e6b3b5d0706773" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8ae9d" + "$oid": "6635322269e6b3b5d07067f9" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aeac" + "$oid": "6635322269e6b3b5d070680c" }, "inferred_section_summary": { "distance": {}, @@ -405,33 +415,38 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": {}, "additions": [] } }, { "_id": { - "$oid": "64933296eb9c1ad493f8aeb8" + "$oid": "6635322369e6b3b5d0706818" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368342.697634, + "write_ts": 1714762275.365001, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 42, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 15, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:42.697634-07:00" + "write_fmt_time": "2024-05-03T11:51:15.365001-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -455,7 +470,7 @@ ] }, "raw_trip": { - "$oid": "64933292eb9c1ad493f8adbe" + "$oid": "6635322069e6b3b5d070671f" }, "start_ts": 1466462052.158904, "start_local_dt": { @@ -479,24 +494,24 @@ "duration": 400.54909586906433, "distance": 405.97685486691756, "start_place": { - "$oid": "64933296eb9c1ad493f8aeb7" + "$oid": "6635322369e6b3b5d0706817" }, "end_place": { - "$oid": "64933296eb9c1ad493f8aeb9" + "$oid": "6635322369e6b3b5d0706819" }, "cleaned_trip": { - "$oid": "64933294eb9c1ad493f8ae22" + "$oid": "6635322169e6b3b5d0706783" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8aea0" + "$oid": "6635322269e6b3b5d07067fa" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aead" + "$oid": "6635322269e6b3b5d070680d" }, "inferred_section_summary": { "distance": {}, @@ -514,13 +529,18 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "trip_user_input": { "_id": { "$oid": "5fd7b7bdf181cd8feb045f41" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "manual/trip_user_input", @@ -603,27 +623,27 @@ }, { "_id": { - "$oid": "64933296eb9c1ad493f8aeba" + "$oid": "6635322369e6b3b5d070681a" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368342.882486, + "write_ts": 1714762275.506772, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 42, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 15, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:42.882486-07:00" + "write_fmt_time": "2024-05-03T11:51:15.506772-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -647,7 +667,7 @@ ] }, "raw_trip": { - "$oid": "64933292eb9c1ad493f8adc0" + "$oid": "6635322069e6b3b5d0706721" }, "start_ts": 1466462970.2807262, "start_local_dt": { @@ -671,24 +691,24 @@ "duration": 865.4322738647461, "distance": 4521.417177464177, "start_place": { - "$oid": "64933296eb9c1ad493f8aeb9" + "$oid": "6635322369e6b3b5d0706819" }, "end_place": { - "$oid": "64933296eb9c1ad493f8aebb" + "$oid": "6635322369e6b3b5d070681b" }, "cleaned_trip": { - "$oid": "64933295eb9c1ad493f8ae34" + "$oid": "6635322269e6b3b5d0706795" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8aea3" + "$oid": "6635322269e6b3b5d07067fb" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aeae" + "$oid": "6635322269e6b3b5d070680e" }, "inferred_section_summary": { "distance": {}, @@ -709,13 +729,18 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "trip_user_input": { "_id": { "$oid": "5fd7b7bdf181cd8feb045f47" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "manual/trip_user_input", @@ -798,27 +823,27 @@ }, { "_id": { - "$oid": "64933297eb9c1ad493f8aebc" + "$oid": "6635322369e6b3b5d070681c" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "analysis/confirmed_trip", "platform": "server", - "write_ts": 1687368343.071133, + "write_ts": 1714762275.64923, "time_zone": "America/Los_Angeles", "write_local_dt": { - "year": 2023, - "month": 6, - "day": 21, - "hour": 10, - "minute": 25, - "second": 43, - "weekday": 2, + "year": 2024, + "month": 5, + "day": 3, + "hour": 11, + "minute": 51, + "second": 15, + "weekday": 4, "timezone": "America/Los_Angeles" }, - "write_fmt_time": "2023-06-21T10:25:43.071133-07:00" + "write_fmt_time": "2024-05-03T11:51:15.649230-07:00" }, "data": { "source": "DwellSegmentationTimeFilter", @@ -842,7 +867,7 @@ ] }, "raw_trip": { - "$oid": "64933293eb9c1ad493f8adc4" + "$oid": "6635322069e6b3b5d0706725" }, "start_ts": 1466466589.3710227, "start_local_dt": { @@ -866,24 +891,24 @@ "duration": 1370.3959772586823, "distance": 5396.705710302932, "start_place": { - "$oid": "64933296eb9c1ad493f8aebb" + "$oid": "6635322369e6b3b5d070681b" }, "end_place": { - "$oid": "64933297eb9c1ad493f8aebd" + "$oid": "6635322369e6b3b5d070681d" }, "cleaned_trip": { - "$oid": "64933295eb9c1ad493f8ae58" + "$oid": "6635322269e6b3b5d07067b9" }, "inferred_labels": [], "inferred_trip": { - "$oid": "64933295eb9c1ad493f8aea6" + "$oid": "6635322269e6b3b5d07067fc" }, "expectation": { "to_label": true }, "confidence_threshold": 0.55, "expected_trip": { - "$oid": "64933295eb9c1ad493f8aeaf" + "$oid": "6635322269e6b3b5d070680f" }, "inferred_section_summary": { "distance": {}, @@ -904,13 +929,18 @@ "ON_FOOT": 1 } }, + "ble_sensed_summary": { + "distance": {}, + "duration": {}, + "count": {} + }, "user_input": { "trip_user_input": { "_id": { "$oid": "5fd7b7bdf181cd8feb045f37" }, "user_id": { - "$uuid": "577bc4f5d3984d3388e1a974b1a98ecd" + "$uuid": "92066e552ad64057b01455c9187e66a5" }, "metadata": { "key": "manual/trip_user_input",